This commit is contained in:
23 files changed
+34
-28
No files matched your search
@@ -10,10 +10,10 @@ namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
|
||||
public class IncreasedStab : Script
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void ChangeStabModifier(IExecutingMove executingMove, IPokemon target, byte hitNumber,
|
||||
public override void ChangeStabModifier(IExecutingMove executingMove, IPokemon target, byte hitNumber, bool isStab,
|
||||
ref float modifier)
|
||||
{
|
||||
if (!modifier.IsApproximatelyEqualTo(1.5f))
|
||||
if (!isStab || !modifier.IsApproximatelyEqualTo(1.5f))
|
||||
return;
|
||||
executingMove.Battle.EventHook.Invoke(new AbilityTriggerEvent(executingMove.User));
|
||||
modifier = 2.0f;
|
||||
|
||||
Reference in new issue
Block a user