• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Add group damage to spell

Status
Not open for further replies.
Level 6
Joined
Mar 26, 2008
Messages
239
I have a spell and I don't really know how to add damage to group in it properly.
Explanation

Hero casts - moves forward for some distance, damaging units, which he goes through. If hero has units "vampire bats" (they are summoned by another ability, like "Locust") then these bats move on the same distance and angle (in other words follow the hero.) Each unit can be damaged once by each wave.
I made movement and animation of the spell, but I cannot add the damage part. Should be implemented in the library part.
 
Last edited:
Level 15
Joined
Oct 16, 2010
Messages
942
I think this should work:

  • Spell Cast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
    • Actions
      • Set spell_Target = (Target point of ability being cast)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Terrain cliff level at spell_Target) Greater than 0
        • Then - Actions
        • Else - Actions
      • Custom script: call RemoveLocation(udg_spell_Target)
 
Status
Not open for further replies.
Top