aboutsummaryrefslogtreecommitdiffstats
path: root/engine/battle
diff options
context:
space:
mode:
Diffstat (limited to 'engine/battle')
-rw-r--r--engine/battle/wild_encounters.asm3
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/battle/wild_encounters.asm b/engine/battle/wild_encounters.asm
index 9fe0c96c..6e29dd4c 100644
--- a/engine/battle/wild_encounters.asm
+++ b/engine/battle/wild_encounters.asm
@@ -1,6 +1,9 @@
; try to initiate a wild pokemon encounter
; returns success in Z
TryDoWildEncounter:
+ ld a, [wSlopNoWild] ; SL0P no-wild-encounters toggle
+ and a
+ jr nz, .CantEncounter
ld a, [wNPCMovementScriptPointerTableNum]
and a
ret nz