• 🏆 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!

Help with a spell

Status
Not open for further replies.
Level 3
Joined
Apr 9, 2008
Messages
42
Ok with this spell I want this spell not to damage allied units, the damage area damages allied units and the caster.

Holy Nova
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Holy Nova
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Then - Actions
Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 325.00 at (Position of (Triggering unit)), dealing 325.00 damage of attack type Spells and damage type Normal
Special Effect - Create a special effect attached to the overhead of (Triggering unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
Wait 0.35 seconds
Special Effect - Create a special effect attached to the overhead of (Triggering unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
Else - Actions
 
Level 4
Joined
Jul 23, 2007
Messages
129
The action is this:
  • Actions:
  • Unit Group - Pick every unit (within 325.00 of(Triggering unit)) matching condition (matching unit belongs to an enemy of (owner of(triggering unit)) and (matching unit is alive equal to true) and do actions.
    • Actions:
      • Unit - Cause (Triggering Unit) to damage (picked unit) dealing 325.00 damage of attack type Spells and damage type Normal
      • Special Effect - Create a special effect attached to the overhead of (picked unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt .mdl
The reason you have to say 'matching unit is alive' is because the trigger will create the special effect on the corpses of enemy units if you don't.
 
Status
Not open for further replies.
Top