25 lines
770 B
C#
25 lines
770 B
C#
using PkmnLib.Plugin.Gen7.Scripts.Side;
|
|
|
|
namespace PkmnLib.Plugin.Gen7.Scripts.MoveVolatile;
|
|
|
|
[Script(ScriptCategory.MoveVolatile, "fire_grass_pledge")]
|
|
public class FireGrassPledgeMove : Script, IScriptChangeMove, IScriptOnSecondaryEffect, IScriptChangeBasePower
|
|
{
|
|
/// <inheritdoc />
|
|
public void ChangeMove(IMoveChoice choice, ref StringKey moveName)
|
|
{
|
|
moveName = "fire_pledge";
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public void ChangeBasePower(IExecutingMove move, IPokemon target, byte hit, ref ushort basePower)
|
|
{
|
|
basePower = 150;
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
|
{
|
|
target.BattleData?.BattleSide.VolatileScripts.Add(new SeaOfFireEffect());
|
|
}
|
|
} |