Fixes Ice Body healing HP regardless of weather (#6939)

This commit is contained in:
PhallenTree 2025-05-21 13:25:12 +01:00 committed by GitHub
parent 87fbf22476
commit a639460c27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4139,7 +4139,8 @@ u32 AbilityBattleEffects(u32 caseID, u32 battler, u32 ability, u32 special, u32
}
break;
case ABILITY_ICE_BODY:
if (!IsBattlerAtMaxHp(battler)
if (IsBattlerWeatherAffected(battler, B_WEATHER_HAIL | B_WEATHER_SNOW)
&& !IsBattlerAtMaxHp(battler)
&& !(gStatuses3[battler] & (STATUS3_UNDERGROUND | STATUS3_UNDERWATER))
&& !(gStatuses3[battler] & STATUS3_HEAL_BLOCK))
{