This commit is contained in:
16 files changed
+503
-10
No files matched your search
@@ -0,0 +1,19 @@
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
|
||||
|
||||
/// <summary>
|
||||
/// Multiscale is an ability that reduces damage taken when at full HP.
|
||||
///
|
||||
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Multiscale_(Ability)">Bulbapedia - Multiscale</see>
|
||||
/// </summary>
|
||||
[Script(ScriptCategory.Ability, "multiscale")]
|
||||
public class Multiscale : Script
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void ChangeIncomingMoveDamage(IExecutingMove move, IPokemon target, byte hit, ref uint damage)
|
||||
{
|
||||
if (target.CurrentHealth == target.BoostedStats.Hp)
|
||||
{
|
||||
damage = (uint)(damage * 0.5);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user