Hello! Just got a problem with a spell trigger.. What it should do is that it has 50% chanse to kill the targeted enemy. See the trigge... It sould not be a big problem to solve, thank you in forehand!
Trigger:
- Ulti
- Events
- Unit - A unit Finishes casting an ability
- Conditions
- (Ability being cast) Equal to Lucky Bolt
- Actions
- Set TempInt = (Random integer number between 1 and 2)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- TempInt Equal to 1
- Then - Actions
- Unit - Explode (Target unit of ability being cast)
- Floating Text - Create floating text that reads |cffd50101LUCKY KIL... above (Target unit of ability being cast) with Z offset 0.00, using font size 12.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
- Floating Text - Change the fading age of (Last created floating text) to 4.00 seconds
- Else - Actions
- Do nothing
- If - Conditions
- Events