Refactor move classes to implement respective interfaces for better structure
All checks were successful
Build / Build (push) Successful in 52s
All checks were successful
Build / Build (push) Successful in 52s
This commit is contained in:
@@ -8,10 +8,10 @@ namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
|
||||
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Truant_(Ability)">Bulbapedia - Truant</see>
|
||||
/// </summary>
|
||||
[Script(ScriptCategory.Ability, "truant")]
|
||||
public class Truant : Script
|
||||
public class Truant : Script, IScriptOnAfterMove
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnAfterMove(IExecutingMove move)
|
||||
public void OnAfterMove(IExecutingMove move)
|
||||
{
|
||||
move.User.Volatile.Add(new TruantEffect(move.User));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user