This Trigger is base on an ability my paladin has that says when hes attack that there is 10/15/20/25/30% chance that a healing wave will heal him and bonce and heals his friends and this trigger that i made doesnt seem to work plz tell me what i did worng thanks you
Code:
HolyShield
Events
Unit - A unit Is attacked
Conditions
((Attacked unit) has buff Holy Shield (Paladin)) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 0 and 100) Less than or equal to (5 + (5 x (Level of Holy Shield (Paladin) for (Attacked unit))))
Then - Actions
Set Paladin = (Attacked unit)
Unit - Create 1 Shadow Hunter for (Owner of (Attacked unit)) at (Position of (Attacked unit)) facing Default building facing degrees
Unit - Add Healing Wave (Paladin) to (Last created unit)
Unit - Set level of Holy Light (Paladin) for (Last created unit) to (Level of Holy Shield (Paladin) for (Attacked unit))
Unit - Order (Last created unit) to Orc Shadow Hunter - Healing Wave Paladin
Unit - Remove (Last created unit) from the game
Else - Actions