This commit is contained in:
19
Plugins/PkmnLib.Plugin.Gen7/Scripts/Abilities/LiquidOoze.cs
Normal file
19
Plugins/PkmnLib.Plugin.Gen7/Scripts/Abilities/LiquidOoze.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user