[trigger="Underworld Beckoning"]
Events
Unit - A unit Is attacked
Conditions
((Attacking unit) has buff Underworld Beckoning ) Equal to True
Actions
Set RanNum = (Random integer number between 1 and 4)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RanNum Equal to 1
Then - Actions
Game - Display to (Player group((Owner of (Attacking unit)))) for 3.00 seconds the text: Stun
Unit - Pause (Attacked unit)
Wait (0.25 + ((Real((Level of Underworld Beckoning for (Attacking unit)))) x 0.25)) seconds
Unit - Unpause (Attacked unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RanNum Equal to 2
Then - Actions
Game - Display to (Player group((Owner of (Attacking unit)))) for 3.00 seconds the text: 2nd Strike
Unit - Cause (Attacking unit) to damage (Attacked unit), dealing ((Real((Level of Underworld Beckoning for (Attacking unit)))) x 10.00) damage of attack type Hero and damage type Normal
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RanNum Equal to 3
Then - Actions
Game - Display to (Player group((Owner of (Attacking unit)))) for 3.00 seconds the text: Stole Health
Unit - Cause (Attacking unit) to damage (Attacked unit), dealing ((Real((Level of Underworld Beckoning for (Attacking unit)))) x 5.00) damage of attack type Hero and damage type Normal
Unit - Set life of (Attacking unit) to ((Life of (Attacking unit)) + ((Real((Level of Underworld Beckoning for (Attacking unit)))) x 5.00))
Else - Actions
Game - Display to (Player group((Owner of (Attacking unit)))) for 3.00 seconds the text: Healed Self
Unit - Set life of (Attacking unit) to ((Life of (Attacking unit)) + ((Real((Level of Underworld Beckoning for (Attacking unit)))) x 10.00))
[/trigger]