- Joined
- May 11, 2012
- Messages
- 2,103
can someone help me mke this trigger works properly? when I cast it for 1st time, it doesn't deal damage, but when csting it again, it does damages.
so What's the problem?
so What's the problem?
-
Ice Blast
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Ice Blast
-
Actions
- Set Damage[1] = 300.00
- Set Damage[2] = 600.00
- Set Damage[3] = 1200.00
- Set Damage[4] = 2400.00
- Set Damage[5] = 4800.00
- Set Damage_Integer = (Level of Ice Blast for Snow_Trig_Unit)
- Set Snow_Trig_Unit = (Triggering unit)
- Set Temp_Point = (Position of Snow_Trig_Unit)
-
For each (Integer A) from 1 to 5, do (Actions)
-
Loop - Actions
- Set Snow_Point = (Temp_Point offset by 125.00 towards (18.00 + (72.00 x (Real((Integer A))))) degrees)
- Special Effect - Create a special effect at Snow_Point using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Set Snow_UnitGroup[1] = (Units within 150.00 of Snow_Point matching ((((Matching unit) belongs to an enemy of (Owner of Snow_Trig_Unit)) Equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) is dead) Equal to False))))
-
Unit Group - Pick every unit in Snow_UnitGroup[1] and do (Actions)
-
Loop - Actions
- Unit - Cause Snow_Trig_Unit to damage (Picked unit), dealing Damage[Damage_Integer] damage of attack type Spells and damage type Normal
-
Loop - Actions
- Custom script: call RemoveLocation(udg_Snow_Point)
-
Loop - Actions
- Wait 0.50 seconds
-
For each (Integer A) from 6 to 15, do (Actions)
-
Loop - Actions
- Set Snow_Point = (Temp_Point offset by 250.00 towards (54.00 + (36.00 x (Real((Integer A))))) degrees)
- Special Effect - Create a special effect at Snow_Point using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Set Snow_UnitGroup[2] = (Units within 150.00 of Snow_Point matching ((((Matching unit) belongs to an enemy of (Owner of Snow_Trig_Unit)) Equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) is dead) Equal to False))))
-
Unit Group - Pick every unit in Snow_UnitGroup[2] and do (Actions)
-
Loop - Actions
- Unit - Cause Snow_Trig_Unit to damage (Picked unit), dealing Damage[Damage_Integer] damage of attack type Spells and damage type Normal
-
Loop - Actions
- Custom script: call RemoveLocation(udg_Snow_Point)
-
Loop - Actions
- Wait 0.50 seconds
-
For each (Integer A) from 16 to 35, do (Actions)
-
Loop - Actions
- Set Snow_Point = (Temp_Point offset by 400.00 towards (72.00 + (18.00 x (Real((Integer A))))) degrees)
- Special Effect - Create a special effect at Snow_Point using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Set Snow_UnitGroup[3] = (Units within 150.00 of Snow_Point matching ((((Matching unit) belongs to an enemy of (Owner of Snow_Trig_Unit)) Equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) is dead) Equal to False))))
-
Unit Group - Pick every unit in Snow_UnitGroup[3] and do (Actions)
-
Loop - Actions
- Unit - Cause Snow_Trig_Unit to damage (Picked unit), dealing Damage[Damage_Integer] damage of attack type Spells and damage type Normal
-
Loop - Actions
- Custom script: call RemoveLocation(udg_Snow_Point)
-
Loop - Actions
-
Events