PkmnLib.NET/Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/FutureSight.cs

21 lines
575 B
C#
Raw Normal View History

2025-03-07 10:50:59 +00:00
using System;
using PkmnLib.Plugin.Gen7.Scripts.Battle;
2025-03-07 10:50:59 +00:00
using PkmnLib.Plugin.Gen7.Scripts.Pokemon;
using PkmnLib.Static.Utils;
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
[Script(ScriptCategory.Move, "future_sight")]
public class FutureSight : Script
{
/// <inheritdoc />
public override void StopBeforeMove(IExecutingMove move, ref bool prevent)
{
var battleData = move.User.BattleData;
if (battleData == null)
return;
battleData.Battle.Volatile.Add(new FutureSightEffect(move.MoveChoice));
prevent = true;
}
}