Fixed bug in AI for Camouflage

This commit is contained in:
Maruno17
2020-09-23 23:10:14 +01:00
parent 4a41e98b28
commit edafe6f98d

View File

@@ -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
#---------------------------------------------------------------------------