namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
[Script(ScriptCategory.Move, "focus_energy")]
public class FocusEnergy : Script, IScriptOnSecondaryEffect
{
///
public void OnSecondaryEffect(IExecutingMove move, IBattlePokemon target, byte hit)
{
if (target.Volatile.Contains())
{
move.GetHitData(target, hit).Fail();
return;
}
target.Volatile.Add(new Pokemon.FocusEnergyEffect());
}
}