I have made a version of backstab that only works when the attacking unit has the buff Wind Walk. When the attacking unit is behind the attacked unit it damages the attacked unit for 75 damage and displays this in Floating Text. For some reason when i attack the unit from the front with the wind walk activated it DOESN'T display the floating text but DOES damage the unit...
Here is my Trigger:
Events
Unit - A unit Is attacked
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
((Triggering unit) is A Hero) Equal to True
((Attacking unit) has buff Wind Walk) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Facing of (Attacking unit)) Greater than or equal to ((Facing of (Attacked unit)) - 45.00)
(Facing of (Attacking unit)) Less than or equal to ((Facing of (Attacked unit)) - 45.00)
Then - Actions
Unit - Cause (Attacking unit) to damage (Attacked unit), dealing 75.00 damage of attack type Hero and damage type Normal
Floating Text - Create floating text that reads +75! above (Attacked unit) with Z offset 0.00, using font size 12.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Floating Text - Change the fading age of (Last created floating text) to 4.00 seconds
Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Floating Text - Change (Last created floating text): Disable permanence
Else - Actions
Else - Actions
Thx in advance
Here is my Trigger:
Events
Unit - A unit Is attacked
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
((Triggering unit) is A Hero) Equal to True
((Attacking unit) has buff Wind Walk) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Facing of (Attacking unit)) Greater than or equal to ((Facing of (Attacked unit)) - 45.00)
(Facing of (Attacking unit)) Less than or equal to ((Facing of (Attacked unit)) - 45.00)
Then - Actions
Unit - Cause (Attacking unit) to damage (Attacked unit), dealing 75.00 damage of attack type Hero and damage type Normal
Floating Text - Create floating text that reads +75! above (Attacked unit) with Z offset 0.00, using font size 12.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Floating Text - Change the fading age of (Last created floating text) to 4.00 seconds
Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Floating Text - Change (Last created floating text): Disable permanence
Else - Actions
Else - Actions
Thx in advance