17 lines
548 B
C#
17 lines
548 B
C#
using PkmnLib.Plugin.Gen7.Scripts.Side;
|
|
|
|
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
|
|
|
[Script(ScriptCategory.Move, "lunar_dance")]
|
|
public class LunarDance : Script, IScriptOnSecondaryEffect
|
|
{
|
|
/// <inheritdoc />
|
|
public void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
|
{
|
|
var battleData = move.User.BattleData;
|
|
if (battleData is null)
|
|
return;
|
|
battleData.BattleSide.VolatileScripts.Add(new LunarDanceEffect(battleData.Position));
|
|
move.User.Faint(DamageSource.Misc);
|
|
}
|
|
} |