CottonCandy - Aug 9, 2013 18:40
Zangetsu will always subtract MATK if current HP is odd, regardless of current SP. It is supposed to add MATK if SP is even.
In status.c, at line 8682, the third assignment causes a side effect of making val2 negative if HP is odd; the fourth assignment will use this negative value instead of the original positive value as intended.
[code=auto:0]
case SC_ZANGETSU:
val2 = iStatus->get_lv(bl) / 3 + 20 * val1;
val3 = iStatus->get_lv(bl) / 2 + 30 * val1;
val2 = (!(status_get_hp(bl)%2) ? val2 : -val3);
val3 = (!(status_get_sp(bl)%2) ? val2 : -val3);
[/code]
malufett - Aug 10, 2013 5:39
Fixed @ d8b2eb622f14e10e4da0e521deb5dee6e849affa
:meow: