Update battle_ai_main.c
This commit is contained in:
parent
80ad7f15cc
commit
03b0d066ce
1 changed files with 1 additions and 2 deletions
|
@ -1742,8 +1742,7 @@ static s32 AI_CheckBadMove(u32 battlerAtk, u32 battlerDef, u32 move, s32 score)
|
|||
case EFFECT_CHILLY_RECEPTION:
|
||||
if (CountUsablePartyMons(battlerAtk) == 0)
|
||||
ADJUST_SCORE(-10);
|
||||
else if (weather & (B_WEATHER_SNOW | B_WEATHER_PRIMAL_ANY)
|
||||
|| IsMoveEffectWeather(aiData->partnerMove))
|
||||
else if (weather & (B_WEATHER_SNOW | B_WEATHER_PRIMAL_ANY) || IsMoveEffectWeather(aiData->partnerMove))
|
||||
ADJUST_SCORE(-8);
|
||||
else if (weather & B_WEATHER_HAIL)
|
||||
ADJUST_SCORE(-2); // mainly to prevent looping between hail and snow
|
||||
|
|
Loading…
Reference in a new issue