FF6 Hacking
Bugfix: refresh spell availability after MP-crit - Printable Version

+- FF6 Hacking (https://www.ff6hacking.com/forums)
+-- Forum: Hacks, Resources and Tutorials (https://www.ff6hacking.com/forums/forum-1.html)
+--- Forum: Jidoor Auction House (https://www.ff6hacking.com/forums/forum-4.html)
+---- Forum: Patches, Bugfixes, Tweaks (https://www.ff6hacking.com/forums/forum-15.html)
+---- Thread: Bugfix: refresh spell availability after MP-crit (/thread-4119.html)



Bugfix: refresh spell availability after MP-crit - SirNewtonFig - 06-10-2021

Typically, when using a weapon that consumes MP for automatic critical hits (think Punisher, Ogre Nix, Ragnarok, etc), the spell availability of the wielder does not refresh correctly after their attack resolves and their MP updates. This can cause them to be able to select a spell to cast that they cannot actually afford anymore, which is inconsistent with how the game handles a lack of MP normally. This behaviour is especially noticeable if you have a source of counter-attack, such as a Black Belt, as the attack that depletes your MP could happen while you are browsing for a spell to cast!

This Patch fixes this by performing the same operation that would happen after receiving any other source of MP damage (or healing). It makes you unable to select spells that you cannot afford to cast after an MP-crit attack. It does not, however, refresh the text of the open Magic/Lore menus (neither do other MP-affecting effects), so spells will still appear castable that you cannot cast anymore, even though you cannot select them. Closing and reopening the menu does update the spell text correctly.

I tried to fix that too, but got a little lost in the neighborhood of the routine for building the magic menu – so if anyone has any ideas, feel free to take this patch and run with it.

ASM source and IPS patches available on my github here: https://github.com/SirNewtonFig/FF6-mp-crit-refresh


RE: Bugfix: refresh spell availability after MP-crit - assassin - 06-10-2021

George Harrison paging the Be Sharps:
http://assassin17.brinkster.net/patches.htm#anchor28


RE: Bugfix: refresh spell availability after MP-crit - Gi Nattak - 06-10-2021

Welp, looks like we've come full circle lol.


RE: Bugfix: refresh spell availability after MP-crit - SirNewtonFig - 06-10-2021

Well, you know what they say: imitation is the sincerest form of flattery. Or ignorance, in my case...

I figured where it was such a simple fix, one of the old guard must have fixed it by now. But then, I thought: why wouldn't BTB/Synchysi have included the fix in BNW?

Anyway, thanks for the history lesson (and the tour of C2)!