- Joined
- Mar 26, 2009
- Messages
- 301
EDIT: I've found out that it's a duplicate trigger issue. Sorry =))
Following Trigger causes "Unable to repair" message to be shown double times at screen. What is wrong with it?
Following Trigger causes "Unable to repair" message to be shown double times at screen. What is wrong with it?
-
Engineering Ability
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Enginneering
-
-
Actions
-
Set Engineer = (Casting unit)
-
Set Engineer_Owner_Player = (Owner of (Triggering unit))
-
Set Enginneer_Mana = ((Integer((Mana of (Casting unit)))) - 15)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
-
((Unit-type of (Target unit of ability being cast)) Equal to Turret) or (((Unit-type of (Target unit of ability being cast)) Equal to Heavy Turret) or ((Unit-type of (Target unit of ability being cast)) Equal to X-22K Prototype))
-
(Integer((Percentage life of (Target unit of ability being cast)))) Not equal to 100
-
-
-
-
Then - Actions
-
Sound - Play Repairing <gen> at 100.00% volume, attached to (Target unit of ability being cast)
-
Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + ((Max life of (Target unit of ability being cast)) / 10.00))
-
-
Else - Actions
-
Game - Display to (Player group(Engineer_Owner_Player)) the text: |cffFF0000Unable to...
-
Wait 0.01 seconds
-
Unit - Set mana of Engineer to ((Real(Enginneer_Mana)) + 15.00)
-
-
-
Set Engineer = No unit
-
-