Execution
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Execution
Actions
Set CastingUnit = (Casting unit)
For each (Integer A) from 0 to (Integer((Mana of CastingUnit))), do (Actions)
Loop - Actions
Unit Group - Pick every unit in (Units within 100.00 of ((Position of CastingUnit) offset by (Real((Integer A))) towards (Facing of CastingUnit) degrees) matching (((Matching unit) belongs to an enemy of (Owner of CastingUnit)) Equal to True)) and do (Unit - Order CastingUnit to damage (Picked unit) for (1.00 x (Real((Level of (Ability being cast) for CastingUnit)))) using attack type Normal and damage type Universal.)
For each (Integer A) from 0 to ((Integer((Mana of CastingUnit))) / 100), do (Actions)
Loop - Actions
Special Effect - Create a special effect at ((Position of CastingUnit) offset by ((Real((Integer A))) x 100.00) towards (Facing of CastingUnit) degrees) using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
Set SpecialEffect = (Last created special effect)
Special Effect - Destroy SpecialEffect
Unit - Set mana of CastingUnit to ((Mana of CastingUnit) - (Mana of CastingUnit))
Execution Copy
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Execution
Actions
Set CastingUnit = (Casting unit)
For each (Integer A) from 0 to ((Integer((Mana of CastingUnit))) x (Level of (Ability being cast) for CastingUnit)), do (Actions)
Loop - Actions
Unit Group - Pick every unit in (Units within 100.00 of ((Position of CastingUnit) offset by (Real((Integer A))) towards (Facing of CastingUnit) degrees) matching (((Matching unit) belongs to an enemy of (Owner of CastingUnit)) Equal to True)) and do (Unit - Order CastingUnit to damage (Picked unit) for (1.00 x (Real((Level of (Ability being cast) for CastingUnit)))) using attack type Normal and damage type Universal.)
For each (Integer A) from 0 to (((Integer((Mana of CastingUnit))) / 100) x (Level of (Ability being cast) for CastingUnit)), do (Actions)
Loop - Actions
Special Effect - Create a special effect at ((Position of CastingUnit) offset by ((Real((Integer A))) x 100.00) towards (Facing of CastingUnit) degrees) using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
Set SpecialEffect = (Last created special effect)
Special Effect - Destroy SpecialEffect
Unit - Set mana of CastingUnit to ((Mana of CastingUnit) - (Mana of CastingUnit))
For each (Integer A) from 0 to (((Integer((Mana of CastingUnit))) / 100) x (Level of (Ability being cast) for CastingUnit)), do (Actions)
For each (Integer A) from 0 to (Integer(Mana of CastingUnit) / 100) x (Level of (Ability being cast) for CastingUnit)