mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 22:24:58 +00:00
Errors in the AI no longer cause it to do nothing
This commit is contained in:
@@ -3,7 +3,9 @@ class Battle::AI
|
||||
# Decide whether the opponent should switch Pokémon
|
||||
#=============================================================================
|
||||
def pbEnemyShouldWithdraw?
|
||||
return pbEnemyShouldWithdrawEx?(false)
|
||||
ret = false
|
||||
PBDebug.logonerr { ret = pbEnemyShouldWithdrawEx?(false) }
|
||||
return ret
|
||||
end
|
||||
|
||||
def pbEnemyShouldWithdrawEx?(forceSwitch)
|
||||
|
||||
Reference in New Issue
Block a user