Further work on refactor to interface based scripts
This commit is contained in:
@@ -27,13 +27,13 @@ public class MirrorCoat : Script, IScriptOnBeforeTurnStart
|
||||
}
|
||||
|
||||
[Script(ScriptCategory.Pokemon, "mirror_coat_helper")]
|
||||
private class MirrorCoatHelper : Script
|
||||
private class MirrorCoatHelper : Script, IScriptOnIncomingHit
|
||||
{
|
||||
public IPokemon? LastAttacker { get; set; }
|
||||
public uint LastDamage { get; set; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void OnIncomingHit(IExecutingMove move, IPokemon target, byte hit)
|
||||
public void OnIncomingHit(IExecutingMove move, IPokemon target, byte hit)
|
||||
{
|
||||
if (move.UseMove.Category != MoveCategory.Special)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user