0D Heal (Y)% Hit F(MA+X)%

From Final Fantasy Hacktics
Jump to: navigation, search
[0d]
00188f38: 27bdffe8 addiu r29,r29,0xffe8
00188f3c: afbf0010 sw r31,0x0010(r29)
00188f40: 0c061760 jal 0x 00185d80        	Get X and MA
00188f44: 00000000 nop				
00188f48: 0c0617ff jal 0x 00185ffc          	Elemental Boost
00188f4c: 00000000 nop				
00188f50: 0c062200 jal 0x 00188800       	Calculate (MA + X)*Faith% This is essentially the same routine as 0x188a24 except without MADEF and Shell.
00188f54: 00000000 nop				
00188f58: 14400009 bne r2,r0,0x 00188f80		
00188f5c: 00000000 nop				
00188f60: 0c062b37 jal 0x 0018acdc       	Add Status at (MA+X)*Faith%; must add or spell fails.
00188f64: 00000000 nop				
00188f68: 10400005 beq r2,r0,0x 00188f80		
00188f6c: 00000000 nop				
00188f70: 0c061989 jal 0x 00186624             	Calculate damage as % of HP
00188f74: 00000000 nop				
00188f78: 0c061cd4 jal 0x 00187350             	Undead Reversal (Heal = Damage)
00188f7c: 00000000 nop				
00188f80: 8fbf0010 lw r31,0x0010(r29)		
00188f84: 27bd 0018 addiu r29,r29,0x 0018		
00188f88: 03e00008 jr r31			
00188f8c: 00000000 nop