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