mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Merge pull request #3 from HM100/patch-1
Fix Dancer working for all moves, not just dance moves
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user