Merge pull request #3 from HM100/patch-1

Fix Dancer working for all moves, not just dance moves
This commit is contained in:
Maruno17
2020-09-05 15:39:05 +01:00
committed by GitHub

View File

@@ -534,7 +534,8 @@ class PokeBattle_Battler
end
# Dancer
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 = []
@battle.pbPriority(true).each do |b|
dancers.push(b) if b.index!=user.index && b.hasActiveAbility?(:DANCER)