This ability doesn't work. Any reasons
1. Can't target ally
2. If enemy's HP is Less or equal to 30% it will instantly kill that unit
3. If enemy's HP is Greater than 30% it will take (Value) damage
-
Events:
-
Unit - A unit Starts the effect of an ability
-
-
Conditions:
-
(Ability being cast) Equal to Execute
-
-
Actions:
-
-------- Setting Variables --------
-
Set Ex_Caster = (Casting Unit)
-
Set Ex_Owner = (Owner of Ex_Caster)
-
Set Ex_Location = (Position of Ex_Caster)
-
Set Ex_Target_Unit = (Targeted unit)
-
-------- Can't target ally --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Ex_Target_Unit belongs to an ally of Ex_Owner) Equal to True
-
-
Then - Actions
-
Game - Display to (All players) the text: |c00FFFF00Can't Tar...
-
-
Else - Actions
-
-
-------- Can Target Enemy --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Ex_Target_Unit belongs to an enemy of Ex_Owner) Equal to True
-
-
Then - Actions
-
-------- Instant Kill --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Percentage life of Ex_Target_Unit) Less than or equal to 30.00
-
-
Then - Actions
-
Unit - Make Ex_Target_Unit Explode on death
-
Floating Text - Create floating text that reads EXECUTE!! Above Ex_Target_Unit with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Floating Text - Change the age of (Last created floating text) to 1.00 seconds
-
Wait 0.05 seconds
-
Unit - Kill Ex_Target_Unit
-
-
Else - Actions
-
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Percentage life of Ex_Target_Unit) Greater than 30.00
-
-
Then - Actions
-
Unit - Cause Ex_Caster to damage Ex_Target_Unit, dealing 2600.00 damage of attack type Chaos and damage type Demolition
-
-
Else - Actions
-
-
-
1. Can't target ally
2. If enemy's HP is Less or equal to 30% it will instantly kill that unit
3. If enemy's HP is Greater than 30% it will take (Value) damage