• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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
941
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