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/Weak_Armor_(Ability)">Bulbapedia - Weak Armor</see>
|
||||
/// </summary>
|
||||
[Script(ScriptCategory.Ability, "weak_armor")]
|
||||
public class WeakArmor : Script
|
||||
public class WeakArmor : Script, IScriptOnIncomingHit
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnIncomingHit(IExecutingMove move, IPokemon target, byte hit)
|
||||
public void OnIncomingHit(IExecutingMove move, IPokemon target, byte hit)
|
||||
{
|
||||
if (move.UseMove.Category != MoveCategory.Physical)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user