mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
15 lines
547 B
Ruby
15 lines
547 B
Ruby
class Battle::AI
|
|
#=============================================================================
|
|
# Decide whether the opponent should Mega Evolve.
|
|
#=============================================================================
|
|
# TODO: Where relevant, pretend the user is Mega Evolved if it isn't but can
|
|
# be.
|
|
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
|