mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
More AI function code rewrites, ensured all AI procs next an appropriate value
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user