my spell create a wall on unit and blocks (X) amount of damage
Problems found:
-the spell dont block the first attack only the second
-after blocking all damage at first cast the next block amount is reduced..
Problems found:
-the spell dont block the first attack only the second
-after blocking all damage at first cast the next block amount is reduced..
-
Cast Wall(Initially On)
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
(Ability being cast) Equal to (==) Wall
-
-
Actions
-
Set CasterWall = (Target unit of ability being cast)
-
Set LastLocation = (Position of (Target unit of ability being cast))
-
Set AbsorbedDamage = 0
-
Set MaxDamage = (100 x (Level of Wall for CasterWall))
-
Trigger - Add to Absorb Wall <gen> the event (Unit - CasterWall Takes damage)
-
Trigger - Turn on Absorb Wall <gen>
-
-
-
Absorb Wall(Initially Off)
-
Events
-
Conditions
-
Actions
-
Unit - Set life of CasterWall to ((Life of CasterWall) + (Damage taken))
-
Set AbsorbedDamage = (AbsorbedDamage + (Integer((Damage taken))))
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
AbsorbedDamage Greater than or equal to (>=) MaxDamage
-
-
Then - Actions
-
Special Effect - Create a special effect at LastLocation using Objects\Spawnmodels\NightElf\NEDeathMedium\NEDeath.mdl
-
Special Effect - Destroy (Last created special effect)
-
Custom script: call RemoveLocation (udg_LastLocation)
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-
-
-