Further work on refactor to interface based scripts
This commit is contained in:
@@ -3,10 +3,10 @@ using PkmnLib.Plugin.Gen7.Scripts.Weather;
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
||||
|
||||
[Script(ScriptCategory.Move, "shore_up")]
|
||||
public class ShoreUp : Script
|
||||
public class ShoreUp : Script, IScriptOnSecondaryEffect
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
||||
public void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
||||
{
|
||||
var healMod = 0.5f;
|
||||
if (move.Battle.WeatherName == ScriptUtils.ResolveName<Sandstorm>())
|
||||
|
||||
Reference in New Issue
Block a user