25 lines
740 B
C#
25 lines
740 B
C#
using PkmnLib.Plugin.Gen7.Scripts.Side;
|
|
|
|
namespace PkmnLib.Plugin.Gen7.Scripts.MoveVolatile;
|
|
|
|
[Script(ScriptCategory.MoveVolatile, "grass_water_pledge")]
|
|
public class GrassWaterPledgeMove : Script, IScriptChangeMove
|
|
{
|
|
/// <inheritdoc />
|
|
public void ChangeMove(IMoveChoice choice, ref StringKey moveName)
|
|
{
|
|
moveName = "grass_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)
|
|
{
|
|
move.User.BattleData?.BattleSide.VolatileScripts.Add(new SwampEffect());
|
|
}
|
|
} |