• 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.

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