Fixed party order not being altered at the start of battle if there are unable Pokémon before the one(s) sent in initially

This commit is contained in:
Maruno17
2022-06-19 17:36:35 +01:00
parent 9a53ee8a0e
commit 9261851701
2 changed files with 7 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ class Battle
return false
end
# Embargo
if battler&.effects[PBEffects::Embargo] > 0
if battler && battler.effects[PBEffects::Embargo] > 0
if showMessages
scene.pbDisplay(_INTL("Embargo's effect prevents the item's use on {1}!",
battler.pbThis(true)))