Small fix that prevented TM relearner if P_ENABLE_ALL_TM_MOVES was TRUE (#8525)

This commit is contained in:
PCG 2025-12-15 08:08:17 +05:30 committed by GitHub
parent 68aa18d0cb
commit 297aeb2d44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6042,7 +6042,7 @@ bool32 HasRelearnerTMMoves(struct Pokemon *mon)
if (move == MOVE_NONE)
continue;
if (!P_ENABLE_ALL_TM_MOVES || !CheckBagHasItem(item, 1))
if (!P_ENABLE_ALL_TM_MOVES && !CheckBagHasItem(item, 1))
continue;
if (!CanLearnTeachableMove(species, move))