17 lines
522 B
C#
17 lines
522 B
C#
using PkmnLib.Plugin.Gen7.Scripts.Pokemon;
|
|
|
|
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
|
|
|
[Script(ScriptCategory.Move, "fire_spin")]
|
|
public class FireSpin : Script, IScriptOnSecondaryEffect
|
|
{
|
|
/// <inheritdoc />
|
|
public void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
|
{
|
|
target.Volatile.StackOrAdd("fire_spin", () =>
|
|
{
|
|
var turns = target.BattleData!.Battle.Random.GetInt(4, 6);
|
|
return new FireSpinEffect(target, turns, move.User);
|
|
});
|
|
}
|
|
} |