I am trying to make a spell called "Contract of the dead".
1) When the unit dies, everything works fine.
2) When the unit does not die, it still executes the trigger
Trigger:
It should add 50 gold if the targeted unit dies, or is dead after 2 seconds when the spell gets casted.
DeadContract
Events
Unit - A unit Begins casting an ability
Conditions
Actions
Wait 2.00 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Target unit of ability being cast) is alive) Equal to False
((Target unit of ability being cast) is A Hero) Equal to False
(Ability being cast) Equal to Contract of the dead
Then - Actions
Game - Display to (All players) the text: ((|CFFFFFC00 + (Name of (Owner of (Casting unit)))) + |CFFFFFC00Got 50 gold because of Contract of the Dead.)
Player - Add 50 to (Owner of (Casting unit)) Current gold
Else - Actions
Do nothing
The real trigger has to be: ((Target unit of ability being cast) is A Hero) Equal to True -- I edited it into "Unit" cuz its hard to test in single player

Any suggestions?


Thanks,
lightwing