Hello, I'll cut right to the point - my trigger is meant to deal damage in an area around the caster while healing himself. My problems are that
a) it won't play the sound I've triggered
b) won't play the unit's animation I've triggered
c) Deals damage to allies as well as enemies, thought I triggered it to only damage enemies.
d) Where it's supposed to heal for 85 health - it only heals the caster for about 20.
Note: Player 1 (Red) will always be the owner of casting unit.
So here's my trigger:
a) it won't play the sound I've triggered
b) won't play the unit's animation I've triggered
c) Deals damage to allies as well as enemies, thought I triggered it to only damage enemies.
d) Where it's supposed to heal for 85 health - it only heals the caster for about 20.
Note: Player 1 (Red) will always be the owner of casting unit.
So here's my trigger:
-
DivineStormAnimation
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Divine Storm
-
-
Actions
-
Animation - Play (Casting unit)'s stand victory animation
-
Sound - Play HolyBolt <gen>
-
-
-
DivineStormDamage
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Divine Storm
-
-
Actions
-
Unit Group - Pick every unit in (Units within 225.00 of (Position of (Casting unit)) matching (((Picked unit) belongs to an enemy of Player 1 (Red)) Equal to True)) and do (If ((Level of Divine Storm for (Casting unit)) Equal to 1) then do (Unit - Cause (Casting unit) to damage (Picked unit), dealing 85.00 damage of attack type Spells and damage type Divine) else do (Do nothing))
-
Unit Group - Pick every unit in (Units within 225.00 of (Position of (Casting unit)) matching (((Picked unit) belongs to an enemy of Player 1 (Red)) Equal to True)) and do (If ((Level of Divine Storm for (Casting unit)) Equal to 2) then do (Unit - Cause (Casting unit) to damage (Picked unit), dealing 130.00 damage of attack type Spells and damage type Divine) else do (Do nothing))
-
Unit Group - Pick every unit in (Units within 225.00 of (Position of (Casting unit)) matching (((Picked unit) belongs to an enemy of Player 1 (Red)) Equal to True)) and do (If ((Level of Divine Storm for (Casting unit)) Equal to 3) then do (Unit - Cause (Casting unit) to damage (Picked unit), dealing 175.00 damage of attack type Spells and damage type Divine) else do (Do nothing))
-
Unit Group - Pick every unit in (Units within 225.00 of (Position of (Casting unit)) matching (((Picked unit) belongs to an enemy of Player 1 (Red)) Equal to True)) and do (If ((Level of Divine Storm for (Casting unit)) Equal to 4) then do (Unit - Cause (Casting unit) to damage (Picked unit), dealing 220.00 damage of attack type Spells and damage type Divine) else do (Do nothing))
-
Unit Group - Pick every unit in (Units within 225.00 of (Position of (Casting unit)) matching (((Picked unit) belongs to an enemy of Player 1 (Red)) Equal to True)) and do (If ((Level of Divine Storm for (Casting unit)) Equal to 5) then do (Unit - Cause (Casting unit) to damage (Picked unit), dealing 270.00 damage of attack type Spells and damage type Divine) else do (Do nothing))
-
If ((Level of Divine Storm for (Casting unit)) Equal to 1) then do (Unit - Set life of (Casting unit) to ((Life of (Casting unit)) + 85.00)) else do (Do nothing)
-
If ((Level of Divine Storm for (Casting unit)) Equal to 2) then do (Unit - Set life of (Casting unit) to ((Life of (Casting unit)) + 130.00)) else do (Do nothing)
-
If ((Level of Divine Storm for (Casting unit)) Equal to 3) then do (Unit - Set life of (Casting unit) to ((Life of (Casting unit)) + 175.00)) else do (Do nothing)
-
If ((Level of Divine Storm for (Casting unit)) Equal to 4) then do (Unit - Set life of (Casting unit) to ((Life of (Casting unit)) + 220.00)) else do (Do nothing)
-
If ((Level of Divine Storm for (Casting unit)) Equal to 5) then do (Unit - Set life of (Casting unit) to ((Life of (Casting unit)) + 270.00)) else do (Do nothing)
-
-