Skip to content

Commit

Permalink
Wild Pokemon can no longer steal held items
Browse files Browse the repository at this point in the history
  • Loading branch information
SoupPotato committed Dec 9, 2024
1 parent ae68574 commit 1e87ff9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions engine/battle/move_effects/thief.asm
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ BattleCommand_Thief:
farcall ItemIsMail
ret c

; Wildmons can't steal items
ld a, [wBattleMode]
dec a
jr z, .cant

ld a, [wEffectFailed]
and a
ret nz
Expand Down Expand Up @@ -108,3 +113,7 @@ BattleCommand_Thief:
ld e, l
ld hl, wEnemyMonItem
ret

.cant
or 1
ret

0 comments on commit 1e87ff9

Please sign in to comment.