35 Heal (Y)% Hit (PA+X)%

From Final Fantasy Hacktics Wiki
Revision as of 12:42, 24 April 2022 by Orkney (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
[35]
00189f08: 27bdffe8 addiu r29,r29,-0x0018    |
00189f0c: afbf0010 sw r31,0x0010(r29)       |
00189f10: 0c06176b jal 0x00185dac           |-->Store_PA_and_X Ability XA = Attacker's PA ans Ability YA = used Ability X
00189f14: 00000000 nop                      |
00189f18: 0c061853 jal 0x0018614c           |-->Attack Up ans Martial Art Increase XA if Attacker uses Attack Up or Martial art with elligible weapon
00189f1c: 00000000 nop                      |
00189f20: 0c061259 jal 0x00184964           |-->Compatibility Modify Ability XA : from -50% to + 50%
00189f24: 00000000 nop                      |
00189f28: 0c061967 jal 0x0018659c           |-->XA + YA for Accuracy XA+YA becomes TCA HP damage (YA is processed via compatibility)
00189f2c: 00000000 nop                      |
00189f30: 0c061d44 jal 0x00187510           |-->Uses_HP_damage_as_Action_hit% HP damage becomes Hit% - Roll Hit% vs random (0 to 100), Set Action hit flag to miss if it fails
00189f34: 00000000 nop                      |
00189f38: 3c028019 lui r2,0x8019            |
00189f3c: 8c422d90 lw r2,0x2d90(r2)         |r2 = Target Current Action (TCA) data pointer
00189f40: 00000000 nop                      |
00189f44: 90420000 lbu r2,0x0000(r2)        |r2 = TCA hit flag
00189f48: 00000000 nop                      |
00189f4c: 10400009 beq r2,r0,0x00189f74     #If Attack hits
00189f50: 00000000 nop                          |
00189f54: 0c062b37 jal 0x0018acdc               |-->Apply_Status_and_Check_Undead Nullify Action if Status infliction fails and Target is not undead / Returns r2 = 0x00 if nullified
00189f58: 00000000 nop                          |
00189f5c: 10400005 beq r2,r0,0x00189f74         #If Attack is not nullified
00189f60: 00000000 nop                              |
00189f64: 0c061989 jal 0x00186624                   |-->Calculate_HP%_damage Set Target Current Action HP damage to [Used Ability Y]% of Target max HP
00189f68: 00000000 nop                              |
00189f6c: 0c061cd4 jal 0x00187350                   |-->Undead_Reversal Switch HP damage to HP recovery if Target isn't undead / Else Nullify 0x80193860
00189f70: 00000000 nop                              |
00189f74: 8fbf0010 lw r31,0x0010(r29)       END
00189f78: 27bd0018 addiu r29,r29,0x0018
00189f7c: 03e00008 jr r31
00189f80: 00000000 nop

Return location

Battle.bin
0018b97c - Pre Formula Setup