Further work on refactor to interface based scripts
This commit is contained in:
@@ -4,10 +4,10 @@ using PkmnLib.Plugin.Gen7.Scripts.Utils;
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
||||
|
||||
[Script(ScriptCategory.Move, "secret_power")]
|
||||
public class SecretPower : Script
|
||||
public class SecretPower : Script, IScriptOnSecondaryEffect
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
||||
public void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
||||
{
|
||||
var environmentCategory = move.Battle.GetEnvironmentCategory();
|
||||
switch (environmentCategory)
|
||||
|
||||
Reference in New Issue
Block a user