Further work on refactor to interface based scripts
This commit is contained in:
@@ -6,10 +6,10 @@ namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
|
||||
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Stakeout_(Ability)">Bulbapedia - Stakeout</see>
|
||||
/// </summary>
|
||||
[Script(ScriptCategory.Ability, "stakeout")]
|
||||
public class Stakeout : Script
|
||||
public class Stakeout : Script, IScriptChangeBasePower
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void ChangeBasePower(IExecutingMove move, IPokemon target, byte hit, ref ushort basePower)
|
||||
public void ChangeBasePower(IExecutingMove move, IPokemon target, byte hit, ref ushort basePower)
|
||||
{
|
||||
if (target.BattleData?.SwitchInTurn == move.Battle.CurrentTurnNumber)
|
||||
basePower = basePower.MultiplyOrMax(2);
|
||||
|
||||
Reference in New Issue
Block a user