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,25 @@
using PkmnLib.Plugin.Gen7.Scripts.Side;
namespace PkmnLib.Plugin.Gen7.Scripts.MoveVolatile;
[Script(ScriptCategory.MoveVolatile, "fire_grass_pledge")]
public class FireGrassPledgeMove : Script
{
/// <inheritdoc />
public override void ChangeMove(IMoveChoice choice, ref StringKey moveName)
{
moveName = "fire_pledge";
}
/// <inheritdoc />
public override void ChangeBasePower(IExecutingMove move, IPokemon target, byte hit, ref ushort basePower)
{
basePower = 150;
}
/// <inheritdoc />
public override void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
{
target.BattleData?.BattleSide.VolatileScripts.Add(new SeaOfFireEffect());
}
}