diff options
author | yenatch <yenatch@gmail.com> | 2013-04-20 02:57:11 -0400 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2013-04-20 02:57:11 -0400 |
commit | 984b47f3e7f6e0358b56293f09ada473ba0f32f8 (patch) | |
tree | c310d4046475932be1ebe06224f245f8c8209ee4 | |
parent | 494f4c13fe2a45d0569bde2fc06e1bdf3fbfc857 (diff) |
Enemy screens
-rw-r--r-- | battle/effect_commands.asm | 18 | ||||
-rw-r--r-- | wram.asm | 9 |
2 files changed, 16 insertions, 11 deletions
diff --git a/battle/effect_commands.asm b/battle/effect_commands.asm index 0b38c25d0..ccd3c3748 100644 --- a/battle/effect_commands.asm +++ b/battle/effect_commands.asm @@ -3449,7 +3449,7 @@ PlayerAttackDamage: ; 352e2 ld c, [hl] ; Reflect - ld a, [$c700] + ld a, [EnemyScreens] bit 4, a jr z, .physicalcrit sla c @@ -3475,7 +3475,7 @@ PlayerAttackDamage: ; 352e2 ld c, [hl] ; Light Screen - ld a, [$c700] + ld a, [EnemyScreens] bit 3, a jr z, .specialcrit sla c @@ -4003,7 +4003,7 @@ Function0x355dd: ; 355dd jr z, .asm_355f7 ld hl, EnemyMonDef - ld de, $c700 + ld de, EnemyScreens ld a, [EnemyMonLevel] .asm_355f7 push af @@ -8989,7 +8989,7 @@ BattleCommand2e: ; 372fc ld a, [hBattleTurn] and a jr z, .asm_3730d - ld hl, $c700 + ld hl, EnemyScreens ld bc, $c706 .asm_3730d ld a, BATTLE_VARS_MOVE_EFFECT @@ -9597,7 +9597,7 @@ BattleCommand5a: ; 3766f BattleCommand56: ; 37683 ; spikes - ld hl, $c700 + ld hl, EnemyScreens ld a, [hBattleTurn] and a jr z, .asm_3768e ; 37689 $3 @@ -10087,7 +10087,7 @@ BattleCommand64: ; 37939 ld a, [hBattleTurn] and a jr z, .asm_3794a ; 37942 $6 - ld hl, $c700 + ld hl, EnemyScreens ld de, $c705 .asm_3794a bit 2, [hl] @@ -10106,7 +10106,7 @@ BattleCommand64: ; 37939 Function0x37962: ; 37962 push hl - ld hl, $c700 + ld hl, EnemyScreens ld a, [hBattleTurn] and a jr z, .asm_3796e @@ -10121,7 +10121,7 @@ Function0x37962: ; 37962 BattleCommand65: ; 37972 ; checksafeguard - ld hl, $c700 + ld hl, EnemyScreens ld a, [hBattleTurn] and a jr z, .asm_3797d ; 37978 $3 @@ -10448,7 +10448,7 @@ BattleCommand69: ; 37b39 ld a, [hBattleTurn] and a jr z, .asm_37b5b ; 37b53 $6 - ld hl, $c700 + ld hl, EnemyScreens ld de, $c731 .asm_37b5b bit 0, [hl] @@ -709,8 +709,13 @@ PlayerScreens: ; c6ff ; bit 4: reflect ; bit 3: light screen ds 1 - - ds 2 + +EnemyScreens: ; c700 +; bit 4: reflect +; bit 3: light screen + ds 1 + + ds 1 PlayerLightScreenCount: ; c702 ds 1 |