Adds a lot more move effects
This commit is contained in:
17
Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/Brine.cs
Normal file
17
Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/Brine.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using PkmnLib.Static.Utils;
|
||||
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
||||
|
||||
[Script(ScriptCategory.Move, "brine")]
|
||||
public class Brine : Script
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void ChangeBasePower(IExecutingMove move, IPokemon target, byte hit, ref byte basePower)
|
||||
{
|
||||
if (target.CurrentHealth <= target.BoostedStats.Hp / 2)
|
||||
{
|
||||
basePower = basePower.MultiplyOrMax(2);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user