More AI function code rewrites, ensured all AI procs next an appropriate value

This commit is contained in:
Maruno17
2023-01-14 23:51:39 +00:00
parent 84bdd1f60b
commit 98f16c2afa
12 changed files with 280 additions and 172 deletions

View File

@@ -222,6 +222,8 @@ end
# Effect depends on the environment. (Secret Power)
#===============================================================================
class Battle::Move::EffectDependsOnEnvironment < Battle::Move
attr_reader :secretPower
def flinchingMove?; return [6, 10, 12].include?(@secretPower); end
def pbOnStartUse(user, targets)
@@ -852,6 +854,8 @@ end
# Pokémon.
#===============================================================================
class Battle::Move::UseMoveDependingOnEnvironment < Battle::Move
attr_reader :npMove
def callsAnotherMove?; return true; end
def pbOnStartUse(user, targets)