MV Check if action is Instant (Yep_InstantCast)

state notetag:

<Custom Action Start Effect>

if (this.isInstantCast) {
user.addBuff(2, 1);
user.addBuff(4, 1);
}

</Custom Action Start Effect>

It always fires true no matter if the current action is an instant skill or a regular skill or a regular attack.
Plugin links for ease of reference:

Try this instead (untested):

<Custom Action Start Effect> var item = user.currentAction().item(); if (user.isInstantCast(item)) { user.addBuff(2, 1); user.addBuff(4, 1); } </Custom Action Start Effect>
this.isInstantCast just points to the function. If a function exists, it is treated as "truthy", which explains what you saw. Adding (brackets) after it, with any expected inputs inside those brackets, causes the function to evaluate and return its result. 👋

[Edit: replaced BattleManager._action with this.currentAction(). Also replaced this with user for readability.]
WTF it works 😀. You r a freaking wizard. Ty so much @caethyril.
You're welcome, happy RPG Making!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/check-if-action-is-instant-yep_instantcast.149473/