17 lines
523 B
C#
17 lines
523 B
C#
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());
|
|
}
|
|
} |