mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixed bug in AI for Camouflage
This commit is contained in:
@@ -1364,7 +1364,7 @@ class PokeBattle_AI
|
||||
:ROCK, # Cave
|
||||
:GROUND # Sand
|
||||
]
|
||||
type = envtypes[@environment]
|
||||
type = envtypes[@battle.environment]
|
||||
score -= 90 if user.pbHasType?(type)
|
||||
end
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user