Further work on refactor to interface based scripts
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
||||
|
||||
[Script(ScriptCategory.Move, "high_jump_kick")]
|
||||
public class HighJumpKick : Script
|
||||
public class HighJumpKick : Script, IScriptOnMoveMiss
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnMoveMiss(IExecutingMove move, IPokemon target)
|
||||
public void OnMoveMiss(IExecutingMove move, IPokemon target)
|
||||
{
|
||||
var damage = move.GetHitData(target, 0).Damage;
|
||||
var recoil = damage / 2;
|
||||
|
||||
Reference in New Issue
Block a user