Files
infinitefusion-e18/Data/Scripts/011_Battle/005_AI/004_AI_MegaEvolve.rb

14 lines
456 B
Ruby

#===============================================================================
#
#===============================================================================
class Battle::AI
# Decide whether the opponent should Mega Evolve.
def pbEnemyShouldMegaEvolve?
if @battle.pbCanMegaEvolve?(@user.index) # Simple "always should if possible"
PBDebug.log_ai("#{@user.name} will Mega Evolve")
return true
end
return false
end
end