summaryrefslogtreecommitdiff
path: root/engine/battle/move_effects/protect.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/battle/move_effects/protect.asm')
-rw-r--r--engine/battle/move_effects/protect.asm9
1 files changed, 2 insertions, 7 deletions
diff --git a/engine/battle/move_effects/protect.asm b/engine/battle/move_effects/protect.asm
index 6c65e0ed1..9025d2f4b 100644
--- a/engine/battle/move_effects/protect.asm
+++ b/engine/battle/move_effects/protect.asm
@@ -1,4 +1,4 @@
-BattleCommand_Protect: ; 37618
+BattleCommand_Protect:
; protect
call ProtectChance
ret c
@@ -11,11 +11,8 @@ BattleCommand_Protect: ; 37618
ld hl, ProtectedItselfText
jp StdBattleTextBox
-; 3762c
-
-
-ProtectChance: ; 3762c
+ProtectChance:
ld de, wPlayerProtectCount
ld a, [hBattleTurn]
and a
@@ -69,7 +66,6 @@ ProtectChance: ; 3762c
and a
ret
-
.failed
xor a
ld [de], a
@@ -77,4 +73,3 @@ ProtectChance: ; 3762c
call PrintButItFailed
scf
ret
-; 3766f