17 lines
411 B
C#
17 lines
411 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace PkmnLib.Plugin.Gen7.Scripts.Side;
|
|
|
|
[Script(ScriptCategory.Side, "toxic_spikes")]
|
|
public class ToxicSpikesEffect : Script
|
|
{
|
|
/// <inheritdoc />
|
|
public override void OnSwitchIn(IPokemon pokemon, byte position)
|
|
{
|
|
if (pokemon.IsFloating)
|
|
return;
|
|
|
|
pokemon.SetStatus(ScriptUtils.ResolveName<Status.Poisoned>());
|
|
}
|
|
} |