mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 21:54:58 +00:00
Waged war against TODO comments in the AI, some refactoring of AI
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
#===============================================================================
|
||||
#
|
||||
#===============================================================================
|
||||
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")
|
||||
|
||||
Reference in New Issue
Block a user