Deukhoofd f5d18d7186
All checks were successful
Build / Build (push) Successful in 50s
More abilities, refactor stealing held items
2025-06-15 11:49:15 +02:00

17 lines
643 B
C#

namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
/// <summary>
/// Stakeout is an ability that doubles the damage dealt to Pokémon that have switched in this turn.
///
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Stakeout_(Ability)">Bulbapedia - Stakeout</see>
/// </summary>
[Script(ScriptCategory.Ability, "stakeout")]
public class Stakeout : Script
{
/// <inheritdoc />
public override void ChangeBasePower(IExecutingMove move, IPokemon target, byte hit, ref ushort basePower)
{
if (target.BattleData?.SwitchInTurn == move.Battle.CurrentTurnNumber)
basePower = basePower.MultiplyOrMax(2);
}
}