diff options
author | anmart <andrewrmartinek@gmail.com> | 2016-02-20 00:39:27 -0500 |
---|---|---|
committer | anmart <andrewrmartinek@gmail.com> | 2016-02-20 00:39:27 -0500 |
commit | 90f1f4a0903b7fc04b28962cd6bc8d946ab15ea5 (patch) | |
tree | db5bbfa3f79abdd907a6d6892e8cfa59f0191e42 /src/engine/home.asm | |
parent | 595988d101d7c7264099ee3b9f559214bfda436c (diff) |
Disassembled Duel Attack Submenu
Disassembled Duel Attack Submenu and some related wram + functions
Diffstat (limited to 'src/engine/home.asm')
-rwxr-xr-x | src/engine/home.asm | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/engine/home.asm b/src/engine/home.asm index 296ca2b..f864282 100755 --- a/src/engine/home.asm +++ b/src/engine/home.asm @@ -5872,23 +5872,23 @@ Func_3269: ; 3269 (0:3269) INCBIN "baserom.gbc",$32f7,$33c1 - $32f7 -Func_33c1: ; 33c1 (0:33c1) +CheckIfCantAttackDueToAttackEffect:: ; 33c1 (0:33c1) ld a, $e8 call GetTurnDuelistVariable or a ret z - ld hl, $0100 - cp $5 - jr z, .asm_33df - ld hl, $0101 - cp $6 - jr z, .asm_33df - ld hl, $0102 - cp $b - jr z, .asm_33df + ld hl, $0100 ;tail wag + cp $05 + jr z, .returnWithCantAttack + ld hl, $0101 ;leer + cp $06 + jr z, .returnWithCantAttack + ld hl, $0102 ;bone attack + cp $0b + jr z, .returnWithCantAttack or a ret -.asm_33df +.returnWithCantAttack scf ret |