4E Dmg (MA*Y)

From Final Fantasy Hacktics Wiki
(Redirected from 0018a420 - 0018a454)
Jump to navigation Jump to search
[4e]
0018a420: 27bdffe8 addiu r29,r29,-0x0018    |
0018a424: afbf0010 sw r31,0x0010(r29)       |
0018a428: 0c06216e jal 0x001885b8           |-->Magical Evade Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit / Returns r2
0018a42c: 00000000 nop                      |
0018a430: 14400005 bne r2,r0,0x0018a448     #If Attack is not evaded
0018a434: 00000000 nop                          |
0018a438: 0c061725 jal 0x00185c94               |-->Store MA and Y XA = Attacker's MA and YA = used Ability Y
0018a43c: 00000000 nop                          |
0018a440: 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
0018a444: 00000000 nop                          |
0018a448: 8fbf0010 lw r31,0x0010(r29)       END
0018a44c: 27bd0018 addiu r29,r29,0x0018
0018a450: 03e00008 jr r31
0018a454: 00000000 nop

Return location

Battle.bin
0018b97c - Pre Formula Setup