-
Wave of Ice
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Wave Of Ice (Text not done)
-
-
Actions
-
-------- >>>Locals<<< --------
-
Custom script: local unit udg_WOI_Caster
-
Custom script: local player udg_WOI_Player
-
Custom script: local integer udg_WOI_Level = 0
-
Custom script: local integer udg_WOI_Integer = 1
-
Custom script: local real udg_WOI_Angle = 0.00
-
Custom script: local real WOI_Offset = 0.00
-
-------- ----------- --------
-
Custom script: set udg_WOI_Caster = GetTriggerUnit()
-
Custom script: set udg_WOI_Player = GetOwningPlayer(udg_WOI_Caster)
-
Custom script: set udg_WOI_Level = GetUnitAbilityLevelSwapped('A01D', udg_WOI_Caster)
-
Set VariableSet WOI_Loc1 = (Position of WOI_Caster)
-
Set VariableSet WOI_Loc2 = (Target point of ability being cast)
-
Set VariableSet WOI_Angle = (Angle from WOI_Loc1 to WOI_Loc2)
-
For each (Integer WOI_Integer) from 1 to 10, do (Actions)
-
Loop - Actions
-
Set VariableSet WOI_Offset = (WOI_Offset + 48.00)
-
Set VariableSet WOI_Loc3 = (WOI_Loc1 offset by (48.00 + WOI_Offset) towards WOI_Angle degrees.)
-
Special Effect - Create a special effect at WOI_Loc3 using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
-
Set VariableSet WOI_SFX[WOI_Integer] = (Last created special effect)
-
Special Effect - Destroy WOI_SFX[WOI_Integer]
-
Custom script: set bj_wantDestroyGroup = true
-
Set VariableSet WOI_DamageGroup = (Units within 125.00 of WOI_Loc3 matching ((((Matching unit) is dead) Equal to False) and (((Matching unit) belongs to an enemy of WOI_Player.) Equal to True)).)
-
Unit Group - Pick every unit in WOI_DamageGroup and do (Actions)
-
Loop - Actions
-
Unit - Cause WOI_Caster to damage (Picked unit), dealing 75.00 damage of attack type Spells and damage type Magic
-
-
-
Custom script: call RemoveLocation (udg_WOI_Loc3)
-
-
-
Custom script: call RemoveLocation (udg_WOI_Loc1)
-
Custom script: call RemoveLocation (udg_WOI_Loc2)
-
Set VariableSet WOI_Offset = 0.00
-
-