This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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>());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user