Deukhoofd 7727f92f4e
All checks were successful
continuous-integration/drone/push Build is passing
Even more moves
2025-05-05 16:58:03 +02:00

24 lines
708 B
C#

using System;
using PkmnLib.Static.Utils;
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
[Script(ScriptCategory.Move, "power_trip")]
public class PowerTrip : Script
{
/// <inheritdoc />
public override void ChangeMoveDamage(IExecutingMove move, IPokemon target, byte hit, ref uint damage)
{
var modifier = 1;
foreach (Statistic stat in Enum.GetValues(typeof(Statistic)))
{
if (stat is Statistic.Accuracy or Statistic.Evasion)
continue;
var statChange = move.User.StatBoost.GetStatistic(stat);
if (statChange > 0)
modifier += statChange;
}
damage = damage.MultiplyOrMax(modifier);
}
}