08 Dmg F(MA*Y)

From Final Fantasy Hacktics Wiki
(Redirected from 00188d84 - 00188df0)
Jump to navigation Jump to search
00188d84: 27bdffe8 addiu r29,r29,-0x0018    |
00188d88: afbf0010 sw r31,0x0010(r29)       |
00188d8c: 0c06216e jal 0x001885b8           |--> Magical Evade Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit
00188d90: 00000000 nop                      |
00188d94: 14400013 bne r2,r0,0x00188de4     #If Attack hits
00188d98: 00000000 nop                          |
00188d9c: 0c061725 jal 0x00185c94               |--> Store MA and Y  XA = Attacker's MA and YA = used Ability Y
00188da0: 00000000 nop                          |
00188da4: 0c0617ff jal 0x00185ffc               |--> Elemental Strengthen XA + 25% if used Ability Element is strengthened
00188da8: 00000000 nop                          |
00188dac: 0c0621d1 jal 0x00188744               |--> Magical Support/Status/Compat Modify Ability XA (Support Abilities, Status, Compatibility)
00188db0: 00000000 nop                          |
00188db4: 0c0621df jal 0x0018877c               |--> Elemental XA * YA Turns XA * YA in HP damage / Modify Damage based on Elements / Returns r2 = 0x00 if Attack hits
00188db8: 00000000 nop                          |
00188dbc: 14400009 bne r2,r0,0x00188de4         #If Attack hits (might be nullified if Target cancels Ability element)
00188dc0: 00000000 nop                              |
00188dc4: 0c061c54 jal 0x00187150                   |-->Faith Calculation Damage becomes Damage*Target Faith/100 * Attacker Faith/100
00188dc8: 00000000 nop                              |
00188dcc: 0c0621c7 jal 0x0018871c                   |-->Elemental Absorb and status roll Turns HP damage into recovery (if element is absorbed) / returns r2 = 0x00 if proc is triggered
00188dd0: 00000000 nop                              |
00188dd4: 14400003 bne r2,r0,0x00188de4             #If Proc is triggered
00188dd8: 00000000 nop                                  |
00188ddc: 0c061fad jal 0x00187eb4                       |-->Apply status (to action) - (Preserve hit status, evade type, hit %) Update Target Current Action status infliction/Removal
00188de0: 00000000 nop                                  |
00188de4: 8fbf0010 lw r31,0x0010(r29)       END
00188de8: 27bd0018 addiu r29,r29,0x0018     
00188dec: 03e00008 jr r31                   
00188df0: 00000000 nop 

Return location

Battle.bin
 8018b97c - Pre Formula Setup