62 –Brave (Y) Hit (MA+X)%

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
[62]
0018ab58: 27bdffe8 addiu r29,r29,0xffe8     |
0018ab5c: afbf0010 sw r31,0x0010(r29)       |
0018ab60: 0c06216e jal 0x001885b8           |-->Magical_Evade_Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit / Returns r2
0018ab64: 00000000 nop                      |
0018ab68: 14400007 bne r2,r0,0x0018ab88     #If Attack is not evaded
0018ab6c: 00000000 nop                          |
0018ab70: 0c0622a1 jal 0x00188a84               |-->MA + X without Faith Set XA ans YA, applies magical modifier (no faith) and compat, uses XA+YA as Hit% - returns r2
0018ab74: 00000000 nop                          |
0018ab78: 14400003 bne r2,r0,0x0018ab88         #If Attack hits
0018ab7c: 00000000 nop                              |
0018ab80: 0c061ba9 jal 0x00186ea4                   |-->-Y Brave Store Ability Y as Target Brave loss
0018ab84: 00000000 nop                              |
0018ab88: 8fbf0010 lw r31,0x0010(r29)       END
0018ab8c: 27bd0018 addiu r29,r29,0x0018
0018ab90: 03e00008 jr r31
0018ab94: 00000000 nop

Return location

Battle.bin
0018b97c : Pre Formula Setup