- Joined
- Jan 1, 2009
- Messages
- 1,615
JASS:
I have the following snippet
Wurst:
CreateTrigger()
..registerAnyUnitEvent(EVENT_PLAYER_HERO_REVIVE_CANCEL)
..addAction(() -> print("on Revive Cancel")
As you can probably tell it fires on the REVIVE_CANCEL event.
Now the problem is, that it ONLY fires when you cancel the revive-process by hitting the Cancel-Spell (or Escape since it's the hotkey),
but NOT when you click the icon in the training-queue (which most people do).
Does anyone have an idea on catching the clicked Icon event? (onTrainCanel doesn't work)
Any help is appreciated.