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