Implements pledge moves
All checks were successful
Build / Build (push) Successful in 48s

This commit is contained in:
2025-06-22 12:17:08 +02:00
parent 6d448e4e8d
commit 43813c1c1c
10 changed files with 237 additions and 4 deletions

View File

@@ -0,0 +1,21 @@
namespace PkmnLib.Plugin.Gen7.Scripts.Side;
[Script(ScriptCategory.Side, "swamp_effect")]
public class SwampEffect : Script
{
private int _turns = 5;
/// <inheritdoc />
public override void ChangeSpeed(ITurnChoice choice, ref uint speed)
{
speed /= 4;
}
/// <inheritdoc />
public override void OnEndTurn(IScriptSource owner, IBattle battle)
{
_turns--;
if (_turns <= 0)
RemoveSelf();
}
}