14 lines
369 B
C#
14 lines
369 B
C#
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>(), false);
|
|
}
|
|
} |