View Single Post
03/28/18, 05:30 PM   #1
Solinur
AddOn Author - Click to view addons
Join Date: Aug 2014
Posts: 78
[implemented] Event when leaving ground target mode.

When using a ground target ability the events EVENT_ENTER_GROUND_TARGET_MODE and EVENT_ACTION_SLOT_ABILITY_USED fire. When the ground targeting is finished, no further event happens, so it is hard to find out if the ability has been fired or cancelled and thus if it has consumed magicka.

I can right now track the cost (e.g. magicka) and try to catch when those cost are removed from the resource pool. But I don't like this roundabout way since it can also fail.

I tried looking for other events and also prehooked CancelCast() but none gave me a reliable way to figure this out.

Would it be possible to add an event EVENT_LEAVE_GROUND_TARGET_MODE(isCancelled) with a return that indicates if the skill was fired?.

Alternatively EVENT_COMBAT_EVENT could also report when Resources get used by skills. Right now it only reacts to effects on the player (like sprinting, blocking, potions or those lightning drains in the Halls of Fabrication trial)

Last edited by Solinur : 03/29/18 at 03:34 AM.