Patch Dancer

This makes dancer work only if a Pokémon uses a dance move (Such as Swords Dance), not when using whichever move
This commit is contained in:
HM The Mister Techno
2020-09-05 17:35:58 +03:00
committed by GitHub
parent 2b7f4a181e
commit 63fddfb2d0

View File

@@ -534,7 +534,8 @@ class PokeBattle_Battler
end end
# Dancer # Dancer
if !@effects[PBEffects::Dancer] && !user.lastMoveFailed && realNumHits>0 && if !@effects[PBEffects::Dancer] && !user.lastMoveFailed && realNumHits>0 &&
!move.snatched && magicCoater<0 && @battle.pbCheckGlobalAbility(:DANCER) !move.snatched && magicCoater<0 && @battle.pbCheckGlobalAbility(:DANCER) &&
move.danceMove?
dancers = [] dancers = []
@battle.pbPriority(true).each do |b| @battle.pbPriority(true).each do |b|
dancers.push(b) if b.index!=user.index && b.hasActiveAbility?(:DANCER) dancers.push(b) if b.index!=user.index && b.hasActiveAbility?(:DANCER)