namespace PkmnLib.Plugin.Gen7.Scripts.Pokemon;
[Script(ScriptCategory.Pokemon, "roost_effect")]
public class RoostEffect : Script, IScriptOnEndTurn
{
///
public override void ChangeTypesForIncomingMove(IExecutingMove executingMove, IPokemon target, byte hitIndex,
IList types)
{
types.RemoveAll(x => x.Name == "flying");
}
///
public void OnEndTurn(IScriptSource owner, IBattle battle) => RemoveSelf();
}