Support for changing turn choice when executing
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:
@@ -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