Merge branch 'master' into dev

This commit is contained in:
Maruno17
2021-02-08 18:38:54 +00:00
6 changed files with 10 additions and 8 deletions

View File

@@ -195,7 +195,7 @@ class PokeBattle_Battler
@effects[PBEffects::Illusion] = nil
if hasActiveAbility?(:ILLUSION)
idxLastParty = @battle.pbLastInTeam(@index)
if idxLastParty!=@pokemonIndex
if idxLastParty >= 0 && idxLastParty != @pokemonIndex
@effects[PBEffects::Illusion] = @battle.pbParty(@index)[idxLastParty]
end
end