top of page
50% Defense Boost for Ice Types During Hail in Battle
8.10
Description Loading...
Credits:
Defa
How To
Add the following routine in free space and note the offset:
ldrh r2, [r3, #0]
mov r3, #192
lsl r3, r3, #1 @384, WEATHER_HAIL_ANY
tst r2, r3
beq checksandstorm
ldr r3, [sp, #24]
mov r1, #15 @TYPE_ICE
cmp r3, #0
beq skip1
ldr r0, [r6, #8]
ldr r3, =0x09490F71 @IsMonOfType
bl linker
b skip2
skip1:
ldr r0, [sp, #20]
ldr r3, =0x094508C5 @IsOfType
bl linker
skip2:
cmp r0, #0
beq back
mov r3, #15
ldr r0, [r6, #36]
lsl r2, r0, #0
mul r2, r3
mov r1, #10
lsl r0, r2, #0
ldr r3, =0x09400427 @__aeabi_uidiv
bl linker
str r0, [r6, #36]
back:
ldr r3, =0x0945EB6D @back to Stat Buffs - Attacker
linker:
bx r3
checksandstorm:
mov r3, #24
tst r2, r3
beq back
ldr r3, =0x0945EB45 @back after hook
bx r3Change 145EB3C from 1A 88 18 23 1A 42 13 D0 to 00 4A 10 47 <offset+1>
Happy Hacking!
bottom of page


