3D Hit (MA+X)%

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
[3d]
00189fcc: 27bdffe8 addiu r29,r29,-0x0018    |
00189fd0: afbf0010 sw r31,0x0010(r29)       |
00189fd4: 0c06216e jal 0x001885b8           |-->Magical_Evade_Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit - returns r2
00189fd8: 00000000 nop                      |
00189fdc: 14400007 bne r2,r0,0x00189ffc     #If Attack is not evaded
00189fe0: 00000000 nop                          |
00189fe4: 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
00189fe8: 00000000 nop                          |
00189fec: 14400003 bne r2,r0,0x00189ffc         #If Attack hits
00189ff0: 00000000 nop                              |
00189ff4: 0c061fc9 jal 0x00187f24                   |-->Apply_status_(to_action) Add Ability status - if successful update TCA Attack type
00189ff8: 00000000 nop                              |
00189ffc: 8fbf0010 lw r31,0x0010(r29)       END
0018a000: 27bd0018 addiu r29,r29,0x0018
0018a004: 03e00008 jr r31
0018a008: 00000000 nop

Return location

Battle.bin
0018b97c - Pre Formula Setup