Merge pull request #1386 from Lukien/battle_engine

Added weather check for ability sand force
This commit is contained in:
ultima-soul 2021-01-31 22:01:21 -08:00 committed by GitHub
commit a41300a6dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6751,7 +6751,8 @@ static u32 CalcMoveBasePowerAfterModifiers(u16 move, u8 battlerAtk, u8 battlerDe
MulModifier(&modifier, UQ_4_12(1.3));
break;
case ABILITY_SAND_FORCE:
if (moveType == TYPE_STEEL || moveType == TYPE_ROCK || moveType == TYPE_GROUND)
if ((moveType == TYPE_STEEL || moveType == TYPE_ROCK || moveType == TYPE_GROUND)
&& WEATHER_HAS_EFFECT && gBattleWeather & WEATHER_SANDSTORM_ANY)
MulModifier(&modifier, UQ_4_12(1.3));
break;
case ABILITY_RIVALRY: