18 lines
613 B
C#
18 lines
613 B
C#
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
|
|
{
|
|
/// <inheritdoc />
|
|
public override void PreventStatusChange(IPokemon pokemon, StringKey status, bool selfInflicted,
|
|
ref bool preventStatus)
|
|
{
|
|
if (status == ScriptUtils.ResolveName<Status.Burned>())
|
|
preventStatus = true;
|
|
}
|
|
} |