More abilities, refactor IPokemon.SetStatus to pass pokemon that caused the status change
All checks were successful
Build / Build (push) Successful in 50s
All checks were successful
Build / Build (push) Successful in 50s
This commit is contained in:
19
Plugins/PkmnLib.Plugin.Gen7/Scripts/Abilities/StrongJaw.cs
Normal file
19
Plugins/PkmnLib.Plugin.Gen7/Scripts/Abilities/StrongJaw.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
|
||||
|
||||
/// <summary>
|
||||
/// Strong Jaw is an ability that boosts the power of biting moves.
|
||||
///
|
||||
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Strong_Jaw_(Ability)">Bulbapedia - Strong Jaw</see>
|
||||
/// </summary>
|
||||
[Script(ScriptCategory.Ability, "strong_jaw")]
|
||||
public class StrongJaw : Script
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void ChangeBasePower(IExecutingMove move, IPokemon target, byte hit, ref ushort basePower)
|
||||
{
|
||||
if (move.UseMove.HasFlag("bite"))
|
||||
{
|
||||
basePower = basePower.MultiplyOrMax(1.5f);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user