19 lines
648 B
C#
19 lines
648 B
C#
namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
|
|
|
|
/// <summary>
|
|
/// Liquid Ooze is an ability that damages attackers using draining moves instead of healing them.
|
|
///
|
|
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Liquid_Ooze_(Ability)">Bulbapedia - Liquid Ooze</see>
|
|
/// </summary>
|
|
[Script(ScriptCategory.Ability, "liquid_ooze")]
|
|
public class LiquidOoze : Script
|
|
{
|
|
/// <inheritdoc />
|
|
public override void CustomTrigger(StringKey eventName, IDictionary<StringKey, object?>? parameters)
|
|
{
|
|
if (eventName != CustomTriggers.ModifyDrain || parameters is null)
|
|
return;
|
|
|
|
parameters["invert"] = true;
|
|
}
|
|
} |