Stopped U-turn switching if the battle is over, ensured animation spritesheet file extensions are removed from animation data, added Debug function to reload system cache, Pokémon debug menu now shows the Pokémon's status problem, changed mkxp.json to fix uncommon rendering problems

This commit is contained in:
Maruno17
2021-07-10 19:23:56 +01:00
parent 16a11d314f
commit 4b98850c3a
5 changed files with 24 additions and 8 deletions

View File

@@ -3157,7 +3157,7 @@ end
#===============================================================================
class PokeBattle_Move_0EE < PokeBattle_Move
def pbEndOfMoveUsageEffect(user,targets,numHits,switchedBattlers)
return if user.fainted? || numHits==0
return if user.fainted? || numHits==0 || @battle.pbAllFainted?(user.idxOpposingSide)
targetSwitched = true
targets.each do |b|
targetSwitched = false if !switchedBattlers.include?(b.index)