17 Dmg (TarCurHP-1) Hit F(MA+X)%

From Final Fantasy Hacktics Wiki
(Redirected from 0018925c - 00189298)
Jump to navigation Jump to search
[17]
0018925c: 27bdffe8 addiu r29,r29,-0x0018    |
00189260: afbf0010 sw r31,0x0010(r29)       |
00189264: 0c06216e jal 0x001885b8           |-->Magical_Evade_Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit / Returns r2
00189268: 00000000 nop                      |
0018926c: 14400007 bne r2,r0,0x0018928c     #If Attack is not evaded
00189270: 00000000 nop                          |
00189274: 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
00189278: 00000000 nop                          |
0018927c: 14400003 bne r2,r0,0x0018928c         #If Attack hits
00189280: 00000000 nop                              |
00189284: 0c0619bb jal 0x001866ec                   |-->Gravi2_Damage_Routine Set HP damage = Current HP - 1 / Set Attack type = HP damage
00189288: 00000000 nop                              |
0018928c: 8fbf0010 lw r31,0x0010(r29)       END        
00189290: 27bd0018 addiu r29,r29,0x0018             
00189294: 03e00008 jr r31                           
00189298: 00000000 nop

Return location

Battle.bin
0018b97c - Pre Formula Setup