Implements more move effects
This commit is contained in:
19
Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/Grudge.cs
Normal file
19
Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/Grudge.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Collections.Generic;
|
||||
using PkmnLib.Static.Utils;
|
||||
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
||||
|
||||
[Script(ScriptCategory.Move, "grudge")]
|
||||
public class Grudge : Script
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
||||
{
|
||||
move.User.Volatile.StackOrAdd("grudge", () =>
|
||||
{
|
||||
move.User.Library.ScriptResolver.TryResolve(ScriptCategory.Pokemon, "grudge",
|
||||
new Dictionary<StringKey, object?>(), out var script);
|
||||
return script;
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user