Fixed bug in Dragon Tail's code

This commit is contained in:
Maruno17
2020-09-16 22:00:51 +01:00
parent e7b90b54b0
commit d111f93e35

View File

@@ -3084,7 +3084,7 @@ class PokeBattle_Move_0EC < PokeBattle_Move
switchedBattlers.push(b.index) switchedBattlers.push(b.index)
roarSwitched.push(b.index) roarSwitched.push(b.index)
end end
if roarSwitched>0 if roarSwitched.length>0
@battle.moldBreaker = false if roarSwitched.include?(user.index) @battle.moldBreaker = false if roarSwitched.include?(user.index)
@battle.pbPriority(true).each do |b| @battle.pbPriority(true).each do |b|
b.pbEffectsOnSwitchIn(true) if roarSwitched.include?(b.index) b.pbEffectsOnSwitchIn(true) if roarSwitched.include?(b.index)