2025-03-07 10:50:59 +00:00
|
|
|
using System;
|
2025-03-07 11:57:06 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|