Skip to content

Commit

Permalink
Fix Sand Force
Browse files Browse the repository at this point in the history
Fixes #307
  • Loading branch information
Kermalis committed Jun 19, 2020
1 parent a302af2 commit 633f828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PokemonBattleEngine/Battle/BattleDamage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ private double CalculateBasePower(PBEBattlePokemon user, PBEBattlePokemon[] targ
}
case PBEWeather.Sandstorm:
{
if (user.Ability == PBEAbility.SandForce && (user.HasType(PBEType.Rock) || user.HasType(PBEType.Ground) || user.HasType(PBEType.Steel)))
if (user.Ability == PBEAbility.SandForce && (moveType == PBEType.Rock || moveType == PBEType.Ground || moveType == PBEType.Steel))
{
basePower *= 1.3;
}
Expand Down

0 comments on commit 633f828

Please sign in to comment.