mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 21:54:58 +00:00
Renamed/rearranged some script files
This commit is contained in:
12
Data/Scripts/011_Battle/005_AI/004_AI_MegaEvolve.rb
Normal file
12
Data/Scripts/011_Battle/005_AI/004_AI_MegaEvolve.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
Reference in New Issue
Block a user