- Joined
- Oct 10, 2009
- Messages
- 111
-
Unbreakable Shield INT
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
(Ability being cast) Equal to Unbreakable Shield 1
-
-
Actions
-
Set US_Caster = (Casting unit)
-
Set US_Damage = (((Level of Unbreakable Shield 1 for US_Caster) + (Hero level of US_Caster)) + (Integer(80.00)))
-
Trigger - Turn on Unbreakable Shield Loop <gen>
-
-
-
Unbreakable Shield Loop
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
(Attacked unit) Equal to US_Caster
-
-
Actions
-
For each (Integer A) from 1 to 5, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Unbreakable Shield 1 for US_Caster) Greater than 0
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Damage taken) Less than or equal to (Real(US_Damage))
-
-
Then - Actions
-
Unit - Set life of (Attacked unit) to (Life of (Attacked unit))
-
-
Else - Actions
-
Trigger - Turn off (This trigger)
-
-
-
-
Else - Actions
-
Trigger - Turn off (This trigger)
-
-
-
-
-
-
Spell should block incoming damage equal to (US_Damage) but it blocks some minor damage (20-30 etc.)