Bug fixes for Illusion with 1 Pokémon in team, Magician triggering and Fake Out failing after switching in by an effect

This commit is contained in:
Maruno17
2021-02-08 18:36:02 +00:00
parent f3f21d4679
commit 9fe513ca16
6 changed files with 10 additions and 8 deletions

View File

@@ -274,7 +274,7 @@ end
#===============================================================================
class PokeBattle_Move_012 < PokeBattle_FlinchMove
def pbMoveFailed?(user,targets)
if user.turnCount>1 || user.lastRoundMoved>=0
if user.turnCount > 1
@battle.pbDisplay(_INTL("But it failed!"))
return true
end

View File

@@ -1557,7 +1557,7 @@ end
#===============================================================================
class PokeBattle_Move_149 < PokeBattle_Move
def pbMoveFailed?(user,targets)
if user.turnCount>1 || user.lastRoundMoved>=0
if user.turnCount > 1
@battle.pbDisplay(_INTL("But it failed!"))
return true
end
@@ -2576,7 +2576,7 @@ end
#===============================================================================
class PokeBattle_Move_174 < PokeBattle_Move
def pbMoveFailed?(user,targets)
if user.turnCount>1 || user.lastRoundMoved>=0
if user.turnCount > 1
@battle.pbDisplay(_INTL("But it failed!"))
return true
end