Powershot progress
Events
Time - Every 0.02 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Powershot_move Less than or equal to 38
Then - Actions
Set Powershot_move = (Powershot_move + 1)
Unit - Move Powershot_dummy instantly to (Powershot_loc offset by 30.00 towards Powershot_angle degrees), facing Powershot_angle degrees
Special Effect - Create a special effect at Powershot_loc using Abilities\Spells\Human\Feedback\SpellBreakerAttack.mdl
Special Effect - Destroy (Last created special effect)
Set Powershot_group = (Units within 300.00 of Powershot_loc matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) belongs to an enemy of (Owner of Powershot_caster)) Equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) i
Set Powershot_hit = (Units within 300.00 of Powershot_loc matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) belongs to an enemy of (Owner of Powershot_caster)) Equal to True) and (((Matching unit) is alive) Equal to True))))
Set Powershot_loc = (Position of Powershot_dummy)
Unit Group - Pick every unit in Powershot_group and do (Actions)
Loop - Actions
Unit - Cause Powershot_caster to damage (Picked unit), dealing (600.00 x (Real((Level of Powershot for Powershot_caster)))) damage of attack type Chaos and damage type Normal
Special Effect - Create a special effect attached to the origin of (Picked unit) using Objects\Spawnmodels\Human\HumanBlood\BloodElfSpellThiefBlood.mdl
Special Effect - Destroy (Last created special effect)
Unit Group - Add (Picked unit) to Powershot_hit
Custom script: call RemoveLocation(udg_Powershot_loc)
Else - Actions
Unit - Remove Powershot_dummy from the game
Custom script: call DestroyGroup(udg_Powershot_group)
Custom script: call DestroyGroup(udg_Powershot_hit)
Custom script: call RemoveLocation(udg_Powershot_loc)
Set Powershot_caster = No unit
Set Powershot_dummy = No unit
Trigger - Turn off (This trigger)