Further work on refactor to interface based scripts
This commit is contained in:
@@ -6,10 +6,10 @@ namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
|
||||
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Queenly_Majesty_(Ability)">Bulbapedia - Queenly Majesty</see>
|
||||
/// </summary>
|
||||
[Script(ScriptCategory.Ability, "queenly_majesty")]
|
||||
public class QueenlyMajesty : Script
|
||||
public class QueenlyMajesty : Script, IScriptFailIncomingMove
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void FailIncomingMove(IExecutingMove move, IPokemon target, ref bool fail)
|
||||
public void FailIncomingMove(IExecutingMove move, IPokemon target, ref bool fail)
|
||||
{
|
||||
if (move.Targets.Count != 1)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user