Further work on refactor to interface based scripts
This commit is contained in:
@@ -6,7 +6,7 @@ namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
|
||||
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Illusion_(Ability)">Bulbapedia - Illusion</see>
|
||||
/// </summary>
|
||||
[Script(ScriptCategory.Ability, "illusion")]
|
||||
public class Illusion : Script
|
||||
public class Illusion : Script, IScriptOnIncomingHit
|
||||
{
|
||||
private IPokemon? _pokemon;
|
||||
|
||||
@@ -43,7 +43,7 @@ public class Illusion : Script
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void OnIncomingHit(IExecutingMove move, IPokemon target, byte hit)
|
||||
public void OnIncomingHit(IExecutingMove move, IPokemon target, byte hit)
|
||||
{
|
||||
if (_pokemon?.BattleData?.Battle is null)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user