2025-03-08 13:39:50 +00:00
|
|
|
using System;
|
2025-03-07 10:50:59 +00:00
|
|
|
using PkmnLib.Plugin.Gen7.Scripts.Pokemon;
|
2025-03-08 13:39:50 +00:00
|
|
|
using PkmnLib.Static.Utils;
|
2025-03-07 10:50:59 +00:00
|
|
|
|
|
|
|
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
|
|
|
|
|
|
|
[Script(ScriptCategory.Move, "fury_cutter")]
|
|
|
|
public class FuryCutter : Script
|
|
|
|
{
|
|
|
|
/// <inheritdoc />
|
|
|
|
public override void ChangeBasePower(IExecutingMove move, IPokemon target, byte hit, ref byte basePower)
|
|
|
|
{
|
|
|
|
var userEffect = move.User.Volatile.Get<FuryCutterEffect>();
|
|
|
|
if (userEffect == null)
|
|
|
|
return;
|
|
|
|
|
2025-03-08 13:39:50 +00:00
|
|
|
if (userEffect.TurnCount < 5)
|
|
|
|
userEffect.TurnCount++;
|
|
|
|
basePower = basePower.MultiplyOrMax((byte)Math.Pow(2, userEffect.TurnCount));
|
2025-03-07 10:50:59 +00:00
|
|
|
}
|
|
|
|
}
|