Fixed typo from commit relating to refactoring switching code

This commit is contained in:
Maruno17
2021-09-23 08:29:28 +01:00
parent 096f13f451
commit 75a39dbc42

View File

@@ -164,8 +164,8 @@ class PokeBattle_Battler
# Some move effects that need to happen here, i.e. user switching caused by # Some move effects that need to happen here, i.e. user switching caused by
# U-turn/Volt Switch/Baton Pass/Parting Shot, Relic Song's form changing, # U-turn/Volt Switch/Baton Pass/Parting Shot, Relic Song's form changing,
# Fling/Natural Gift consuming item. # Fling/Natural Gift consuming item.
if !switchedBattlers.include?(user.index) if !switched_battlers.include?(user.index)
move.pbEndOfMoveUsageEffect(user,targets,numHits,switchedBattlers) move.pbEndOfMoveUsageEffect(user,targets,numHits,switched_battlers)
end end
# User's ability/item that switches the user out (all negated by Sheer Force) # User's ability/item that switches the user out (all negated by Sheer Force)
if !(user.hasActiveAbility?(:SHEERFORCE) && move.addlEffect > 0) if !(user.hasActiveAbility?(:SHEERFORCE) && move.addlEffect > 0)