namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;

/// <summary>
/// Water Veil is an ability that prevents the Pokémon from being burned.
///
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Water_Veil_(Ability)">Bulbapedia - Water Veil</see>
/// </summary>
[Script(ScriptCategory.Ability, "water_veil")]
public class WaterVeil : Script, IScriptPreventStatusChange
{
    /// <inheritdoc />
    public void PreventStatusChange(IPokemon pokemon, StringKey status, bool selfInflicted, ref bool preventStatus)
    {
        if (status == ScriptUtils.ResolveName<Status.Burned>())
            preventStatus = true;
    }
}