fix: only fire skill execution events if skill actually executed#439
fix: only fire skill execution events if skill actually executed#439LordMidas wants to merge 1 commit intodevelopmentfrom
Conversation
Vanilla `use` function has checks built in which may cause it to return early and not actually execute the skill. Hooking onUse ensures that we only fire it when the skill is being executed, however in this case we still need a flag to switch from `use` as `onUse` can be called manually as well.
|
An event for the initial With this mods proposal we also have a small issue that there might already be mods out there using |
Actually your point is valid and this means that this PR would break the current behavior, so we cannot do it like this. Currently |
6677ac8 to
ae825b7
Compare
Vanilla
usefunction has checks built in which may cause it to return early and not actually execute the skill. Hooking onUse ensures that we only fire it when the skill is being executed, however in this case we still need a flag to switch fromuseasonUsecan be called manually as well.This will require us to update our documentation as it currently says that these events are fired before and after
use. So now we'd have to say they fire before and afteronUse.