56 –MA (Y) Hit (MA+X)%

From Final Fantasy Hacktics Wiki
Revision as of 19:32, 26 April 2022 by Orkney (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
[56]
0018a6f8: 27bdffe8 addiu r29,r29,0xffe8     |
0018a6fc: afbf0010 sw r31,0x0010(r29)       |
0018a700: 0c06216e jal 0x001885b8           |-->Magical_Evade_Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit / Returns r2
0018a704: 00000000 nop                      |
0018a708: 1440000f bne r2,r0,0x0018a748     #If Attack is not evaded
0018a70c: 00000000 nop                          |
0018a710: 0c0622a1 jal 0x00188a84               |-->MA_%2B_X_without_faith Set XA ans YA, applies magical modifier (no faith) and compat, uses XA+YA as Hit% - returns r2
0018a714: 00000000 nop                          |
0018a718: 1440000b bne r2,r0,0x0018a748         #If Attack hits
0018a71c: 00000000 nop                              |
0018a720: 3c028019 lui r2,0x8019                    |
0018a724: 904238fa lbu r2,0x38fa(r2)                |r2 = Current Ability used Ability Y
0018a728: 3c038019 lui r3,0x8019                    |
0018a72c: 8c632d90 lw r3,0x2d90(r3)                 |r3 = Target Current Action (TCA) data pointer
0018a730: 3042007f andi r2,r2,0x007f                |r2 = Y without 0x80 (no bonus flag)
0018a734: a0620015 sb r2,0x0015(r3)                 |Store Ability Y as TCA MA loss
0018a738: 3c038019 lui r3,0x8019                    |
0018a73c: 8c632d90 lw r3,0x2d90(r3)                 |r3 = TCA data pointer
0018a740: 34020001 ori r2,r0,0x0001                 |r2 = 0x01
0018a744: a0620025 sb r2,0x0025(r3)                 |Set TCA Attack Type as Pseudo-Status
0018a748: 8fbf0010 lw r31,0x0010(r29)       END
0018a74c: 27bd0018 addiu r29,r29,0x0018
0018a750: 03e00008 jr r31
0018a754: 00000000 nop

Return location

Battle.bin
0018b97c : Pre Formula Setup