More AI code for deciding when to switch

This commit is contained in:
Maruno17
2023-04-17 19:08:42 +01:00
parent 7f6f57dec3
commit d277658965
11 changed files with 468 additions and 171 deletions

View File

@@ -1,3 +1,9 @@
# NOTE: The following clauses have battle code implementing them, but no class
# below to apply them:
# "drawclause"
# "modifiedselfdestructclause"
# "suddendeath"
#===============================================================================
#
#===============================================================================
@@ -58,7 +64,7 @@ end
#
#===============================================================================
class PerishSongClause < BattleRule
def setRule(battle); battle.rules["perishsong"] = true; end
def setRule(battle); battle.rules["perishsongclause"] = true; end
end
#===============================================================================