namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
///
/// White Smoke is an ability that prevents the Pokémon's stats from being lowered by other Pokémon.
///
/// Bulbapedia - White Smoke
///
[Script(ScriptCategory.Ability, "white_smoke")]
public class WhiteSmoke : Script
{
///
public override void PreventStatBoostChange(IPokemon target, Statistic stat, sbyte amount, bool selfInflicted,
ref bool prevent)
{
if (selfInflicted || amount >= 0)
return;
prevent = true;
}
}