• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[JASS] Add group damage to spell

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

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
Oct 16, 2010
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)
Not open for further replies.