namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
///
/// Toxic Boost is an ability that increases Attack when the Pokémon is poisoned.
///
/// Bulbapedia - Toxic Boost
///
[Script(ScriptCategory.Ability, "toxic_boost")]
public class ToxicBoost : Script
{
///
public override void ChangeMoveDamage(IExecutingMove move, IPokemon target, byte hit, ref uint damage)
{
if (move.User.HasStatus(ScriptUtils.ResolveName()) ||
move.User.HasStatus(ScriptUtils.ResolveName()))
{
damage = damage.MultiplyOrMax(1.5f);
}
}
}