using PkmnLib.Static.Moves;
namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
///
/// Flare Boost is an ability that increases the power of special moves by 50% when the Pokémon is burned.
/// This ability is exclusive to Drifblim.
///
/// Bulbapedia - Flare Boost
///
[Script(ScriptCategory.Ability, "flare_boost")]
public class FlareBoost : Script, IScriptChangeDamageModifier
{
///
public void ChangeDamageModifier(IExecutingMove move, IPokemon target, byte hit, ref float modifier)
{
if (!move.User.HasStatus(ScriptUtils.ResolveName()))
return;
if (move.UseMove.Category == MoveCategory.Special)
modifier *= 1.5f;
}
}