Incorrect call in Rest (#7569)

This commit is contained in:
surskitty 2025-08-17 03:14:18 -04:00 committed by GitHub
parent 3a4dbec021
commit f998ec8ea8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4114,8 +4114,8 @@ static u32 AI_CalcMoveEffectScore(u32 battlerAtk, u32 battlerDef, u32 move)
{
if (aiData->holdEffects[battlerAtk] == HOLD_EFFECT_CURE_SLP
|| aiData->holdEffects[battlerAtk] == HOLD_EFFECT_CURE_STATUS
|| HasMoveWithEffect(EFFECT_SLEEP_TALK, battlerAtk)
|| HasMoveWithEffect(EFFECT_SNORE, battlerAtk)
|| HasMoveWithEffect(battlerAtk, EFFECT_SLEEP_TALK)
|| HasMoveWithEffect(battlerAtk, EFFECT_SNORE)
|| aiData->abilities[battlerAtk] == ABILITY_SHED_SKIN
|| aiData->abilities[battlerAtk] == ABILITY_EARLY_BIRD
|| (AI_GetWeather() & B_WEATHER_RAIN && gWishFutureKnock.weatherDuration != 1 && aiData->abilities[battlerAtk] == ABILITY_HYDRATION && aiData->holdEffects[battlerAtk] != HOLD_EFFECT_UTILITY_UMBRELLA))