- Is there any built-in GAS API or field that tells me the spec handle or class of the Ability that cancelled this one?
- If not, what is the recommended way to propagate “who cancelled me” or “who retriggered me” into
OnEndAbility
?
Hey @LucasHYuan
What I would do is the following:
-
Create 2 variables in your Character called “Current Activated Ability” and “Last Cancelled Ability”, both of them to store you base ability class.
-
Add this custom event to all your abilities and call it immediately after you trigger any of them:
-
Then add this last logic at the end of every ability:
Of course, you could replace the print at the end with whatever logic you need after knowing the class of the ability.
There are probably better ways to do this but this should work fine!
Let me know if it helps you!