Hello, im trying to make that when a hero uses avatar, it deals damage to nearby enemy units. I have this trigger but the damage its not dealt. Any tips?
-
Avatar
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to Avatar (Custom)
-
-

Actions
-


Set VariableSet MountainKingPosition = (Position of (Triggering unit))
-


Unit Group - Pick every unit in (Units within 512.00 of MountainKingPosition matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit)).) Equal to True).) and do (Unit - Cause (Triggering unit) to damage (Picked unit), dealing 2000.00 damage of attack type Spells and damage type Normal)
-


Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
-


Special Effect - Create a special effect attached to the overhead of (Triggering unit) using Abilities\Spells\Orc\SpiritLink\SpiritLinkZapTarget.mdl
-


Custom script: call RemoveLocation(udg_MountainKingPosition)
-
-
