- Joined
- Feb 27, 2010
- Messages
- 184
well, this may seem as a nooby question, but i cant make my AoE spells do damage only to enemies.
for example, i wanted to create a spell, which heals a target, then deals damage around it for some amount of target's hp. please help me, i dont know what to do.
Voodoo Heal
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Voodoo Heal
Actions
Set VHCasterLoc = (Position of (Targeted unit))
Set VHDmgGroup = (Units within 512.00 of VHCasterLoc matching (((Owner of (Matching unit)) is an enemy of (Owner of (Triggering unit))) Equal to True))
Unit Group - Pick every unit in VHDmgGroup and do (Unit - Cause (Triggering unit) to damage (Picked unit), dealing ((100.00 - (Percentage life of (Target unit of ability being cast))) + (5.00 x (Real((Level of Voodoo Heal for (Triggering unit)))))) damage of attack type Spells and damage type Normal)
Custom script: call RemoveLocation(udg_VHCasterLoc)
for example, i wanted to create a spell, which heals a target, then deals damage around it for some amount of target's hp. please help me, i dont know what to do.
Voodoo Heal
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Voodoo Heal
Actions
Set VHCasterLoc = (Position of (Targeted unit))
Set VHDmgGroup = (Units within 512.00 of VHCasterLoc matching (((Owner of (Matching unit)) is an enemy of (Owner of (Triggering unit))) Equal to True))
Unit Group - Pick every unit in VHDmgGroup and do (Unit - Cause (Triggering unit) to damage (Picked unit), dealing ((100.00 - (Percentage life of (Target unit of ability being cast))) + (5.00 x (Real((Level of Voodoo Heal for (Triggering unit)))))) damage of attack type Spells and damage type Normal)
Custom script: call RemoveLocation(udg_VHCasterLoc)