More abilities
This commit is contained in:
19
Plugins/PkmnLib.Plugin.Gen7/Scripts/Abilities/Reckless.cs
Normal file
19
Plugins/PkmnLib.Plugin.Gen7/Scripts/Abilities/Reckless.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
|
||||
|
||||
/// <summary>
|
||||
/// Reckless is an ability that boosts the power of moves that have recoil or crash damage.
|
||||
///
|
||||
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Reckless_(Ability)">Bulbapedia - Reckless</see>
|
||||
/// </summary>
|
||||
[Script(ScriptCategory.Ability, "reckless")]
|
||||
public class Reckless : Script
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void ChangeBasePower(IExecutingMove move, IPokemon target, byte hit, ref ushort basePower)
|
||||
{
|
||||
if (move.UseMove.HasFlag("recoil"))
|
||||
{
|
||||
basePower = basePower.MultiplyOrMax(1.2f);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user