24 Dmg ((PA+Y)/2*MA)

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
001896b4: 27bdffe8 addiu r29,r29,0xffe8     |
001896b8: afbf0010 sw r31,0x0010(r29)       |
001896bc: 0c06216e jal 0x001885b8           |-->Magical Evade Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit / Returns r2
001896c0: 00000000 nop                      |
001896c4: 14400005 bne r2,r0,0x001896dc     #If Attack is not evaded
001896c8: 00000000 nop                          |
001896cc: 0c061750 jal 0x00185d40               |-->Store MA and PA + Y / 2  Set XA = MA and YA = (PA + Y)/2
001896d0: 00000000 nop                          |
001896d4: 0c062259 jal 0x00188964               |-->Truth/Formula 5E-5F Magical damage Modify XA (Element/Support…) set HP damage (XA*YA) process it through elemental resistances, Roll +/- Add status
001896d8: 00000000 nop                          |
001896dc: 8fbf0010 lw r31,0x0010(r29)       END
001896e0: 27bd0018 addiu r29,r29,0x0018     
001896e4: 03e00008 jr r31                   
001896e8: 00000000 nop                      

Return location

Battle.bin
0018b97c - Pre Formula Setup