Further work on refactor to interface based scripts
This commit is contained in:
@@ -8,10 +8,10 @@ namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
|
||||
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Stench_(Ability)">Bulbapedia - Stench</see>
|
||||
/// </summary>
|
||||
[Script(ScriptCategory.Ability, "stench")]
|
||||
public class Stench : Script
|
||||
public class Stench : Script, IScriptOnSecondaryEffect
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
||||
public void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
||||
{
|
||||
if (move.Battle.Random.GetInt(100) >= 10)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user