Fixed incorrect AI code for considering Sticky Web when switching

This commit is contained in:
Maruno17
2023-07-22 18:43:28 +01:00
parent fc95baf92c
commit 0068695c54
2 changed files with 4 additions and 4 deletions

View File

@@ -118,7 +118,7 @@ class Battle::AI
score -= 20 if pokemon_can_be_poisoned?(pkmn)
end
# Sticky Web
if @user.pbOwnSide.effects[PBEffects::ToxicSpikes]
if @user.pbOwnSide.effects[PBEffects::StickyWeb]
score -= 15
end
end