15 Set CT00 Hit F(MA+X)%
(Redirected from 001891ac - 00189200)
Jump to navigation
Jump to search
[15] 001891ac: 27bdffe8 addiu r29,r29,-0x0018 | 001891b0: afbf0010 sw r31,0x0010(r29) | 001891b4: 0c06216e jal 0x001885b8 |-->Magical_Evade_Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit / Returns r2 001891b8: 00000000 nop | 001891bc: 1440000d bne r2,r0,0x001891f4 #If Attack is not evaded 001891c0: 00000000 nop | 001891c4: 0c062273 jal 0x001889cc |-->Calculate Accuracy for Magical Spells Set XA and YA, applies XA changes (Status, Compat, Support), uses XA+YA as Hit% (Modified by faith) / Returns r2 001891c8: 00000000 nop | 001891cc: 14400009 bne r2,r0,0x001891f4 #If Attack hits 001891d0: 3402007f ori r2,r0,0x007f |r2 = 0x7f 001891d4: 3c038019 lui r3,0x8019 | 001891d8: 8c632d90 lw r3,0x2d90(r3) |r3 = Target Current Action (TCA) data pointer 001891dc: 00000000 nop | 001891e0: a0620013 sb r2,0x0013(r3) |Set TCA CT change to 0x7f (will becomes - 127) 001891e4: 3c038019 lui r3,0x8019 | 001891e8: 8c632d90 lw r3,0x2d90(r3) |r3 = TCA data pointer 001891ec: 34020001 ori r2,r0,0x0001 |r2 = 0x01 (pseudo status attack type 001891f0: a0620025 sb r2,0x0025(r3) |Set TCA Attack type to pseudo status (disables other flags) 001891f4: 8fbf0010 lw r31,0x0010(r29) END 001891f8: 27bd0018 addiu r29,r29,0x0018 001891fc: 03e00008 jr r31 00189200: 00000000 nop
Return locations
Battle.bin 0018b97c - Pre Formula Setup