More moves implemented
This commit is contained in:
14
Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/FairyLock.cs
Normal file
14
Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/FairyLock.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using PkmnLib.Plugin.Gen7.Scripts.Battle;
|
||||
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
||||
|
||||
[Script(ScriptCategory.Move, "fairy_lock")]
|
||||
public class FairyLock : Script
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
||||
{
|
||||
var battle = target.BattleData?.Battle;
|
||||
battle?.Volatile.Add(new FairyLockEffect());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user