More moves implemented
This commit is contained in:
17
Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/CraftyShield.cs
Normal file
17
Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/CraftyShield.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using PkmnLib.Plugin.Gen7.Scripts.Side;
|
||||
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
||||
|
||||
[Script(ScriptCategory.Move, "crafty_shield")]
|
||||
public class CraftyShield : Script
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
||||
{
|
||||
var battleData = move.User.BattleData;
|
||||
if (battleData == null)
|
||||
return;
|
||||
var side = battleData.Battle.Sides[battleData.SideIndex];
|
||||
side.VolatileScripts.Add(new CraftyShieldEffect());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user