This commit is contained in:
@@ -6,6 +6,11 @@ public class FocusEnergy : Script, IScriptOnSecondaryEffect
|
||||
/// <inheritdoc />
|
||||
public void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
||||
{
|
||||
target.Volatile.Add(new Pokemon.IncreasedCriticalStage());
|
||||
if (target.Volatile.Contains<Pokemon.FocusEnergyEffect>())
|
||||
{
|
||||
move.GetHitData(target, hit).Fail();
|
||||
return;
|
||||
}
|
||||
target.Volatile.Add(new Pokemon.FocusEnergyEffect());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user