MV Yanfly Dual Cast/Instant Cast

Hi, I seem to be having a problem with Yanfly's Tips & Tricks Dual Casting and Instant Casting

The dual cast state works fine until I instant cast something, and then it no long works, skills don't get dual casted anymore.
I think instant cast is breaking the skill que, but I'm not sure, I tried to fix it but no luck.

The best fix for me would be to have the state not dual cast instant skills and only non instant ones.
Any help would be appreciated!
The best fix for me would be to have the state not dual cast instant skills and only non instant ones.
Any help would be appreciated!

If you want to make it so that it ignores the instacasts, you want to change the 3rd line of the state from this:
JavaScript:
if ($gameTemp._chainAction === undefined) {
to something like this:
JavaScript:
if ($gameTemp._chainAction === undefined && !user.isInstantCast(user.currentAction().item())) {

that should make it so that when youre taking an action, itll make sure that the skill isnt instant, then stores the action as chainaction to be used again if its a spell instead of before where the instacast gets stored as chainaction, then the spell you cast just clears the chainaction because it already exists
Moved to: Plugin Support
If you want to make it so that it ignores the instacasts, you want to change the 3rd line of the state from this:
JavaScript:
if ($gameTemp._chainAction === undefined) {
to something like this:
JavaScript:
if ($gameTemp._chainAction === undefined && !user.isInstantCast(user.currentAction().item())) {

that should make it so that when youre taking an action, itll make sure that the skill isnt instant, then stores the action as chainaction to be used again if its a spell instead of before where the instacast gets stored as chainaction, then the spell you cast just clears the chainaction because it already exists
Yes, this seems to work in a more intended way!
Thanks for the help!
This thread is being closed at the user’s request due to being solved.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-dual-cast-instant-cast.156759/