mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-17 02:40:50 +12:00
CheckTargetSubstitute from smkdan's docs.
hg-commit-id: 229bf9102cf7
This commit is contained in:
parent
419ea20764
commit
3901d3ac17
20
main.asm
20
main.asm
|
@ -40993,7 +40993,7 @@ UnnamedText_3f2e4: ; 0x3f2e4
|
||||||
|
|
||||||
INCBIN "baserom.gbc",$3f2e9,$3f30c - $3f2e9
|
INCBIN "baserom.gbc",$3f2e9,$3f30c - $3f2e9
|
||||||
|
|
||||||
FreezeBurnParalyzeEffect:
|
FreezeBurnParalyzeEffect: ;0x3f30c
|
||||||
xor a
|
xor a
|
||||||
ld [$cc5b], a
|
ld [$cc5b], a
|
||||||
call $7b79 ;test bit 4 of d063/d068 flags [target has substitute flag]
|
call $7b79 ;test bit 4 of d063/d068 flags [target has substitute flag]
|
||||||
|
@ -41053,7 +41053,7 @@ FreezeBurnParalyzeEffect:
|
||||||
call $7bb9 ;animation
|
call $7bb9 ;animation
|
||||||
ld hl, UnnamedText_3f3dd
|
ld hl, UnnamedText_3f3dd
|
||||||
jp PrintText
|
jp PrintText
|
||||||
opponentAttacker:
|
opponentAttacker: ;0x3f382
|
||||||
ld a, [W_PLAYERMONSTATUS] ;this appears to the same as above with addresses swapped for opponent
|
ld a, [W_PLAYERMONSTATUS] ;this appears to the same as above with addresses swapped for opponent
|
||||||
and a
|
and a
|
||||||
jp nz, CheckDefrost
|
jp nz, CheckDefrost
|
||||||
|
@ -41108,7 +41108,7 @@ UnnamedText_3f3dd: ; 0x3f3dd
|
||||||
db $50
|
db $50
|
||||||
; 0x3f3dd + 5 bytes
|
; 0x3f3dd + 5 bytes
|
||||||
|
|
||||||
CheckDefrost:
|
CheckDefrost: ;0x3f3e2
|
||||||
and a, FRZ ;are they frozen?
|
and a, FRZ ;are they frozen?
|
||||||
ret z ;return if so
|
ret z ;return if so
|
||||||
;not frozen
|
;not frozen
|
||||||
|
@ -41273,7 +41273,19 @@ UnnamedText_3fb74: ; 0x3fb74
|
||||||
db $50
|
db $50
|
||||||
; 0x3fb74 + 5 bytes
|
; 0x3fb74 + 5 bytes
|
||||||
|
|
||||||
INCBIN "baserom.gbc",$3fb79,$3fbc8 - $3fb79
|
CheckTargetSubstitute: ;0x3fb79
|
||||||
|
push hl
|
||||||
|
ld hl, $d068
|
||||||
|
ld a, [$ff00+$f3] ;whose turn?
|
||||||
|
and a
|
||||||
|
jr z, .next1\@
|
||||||
|
ld hl, $d063
|
||||||
|
.next1\@
|
||||||
|
bit 4, [hl] ;test bit 4 in d063/d068 flags
|
||||||
|
pop hl
|
||||||
|
ret
|
||||||
|
|
||||||
|
INCBIN "baserom.gbc",$3fb89,$3fbc8 - $3fb89
|
||||||
|
|
||||||
SECTION "bank10",DATA,BANK[$10]
|
SECTION "bank10",DATA,BANK[$10]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue