Fixed X items not working, fixed Knock Off being able to remove usable Mega Stones

This commit is contained in:
Maruno17
2022-04-24 21:04:22 +01:00
parent 8062b8ed6c
commit ad29dc6dc4
2 changed files with 6 additions and 5 deletions

View File

@@ -485,7 +485,7 @@ class Battle
# This method only counts the player's Pokémon, not a partner trainer's.
def pbPlayerBattlerCount
return allSameSideBattlers(idxBattler).select { |b| b.pbOwnedByPlayer? }.length
return allSameSideBattlers.select { |b| b.pbOwnedByPlayer? }.length
end
def pbCheckGlobalAbility(abil)