More work on refactor to interfaces
All checks were successful
Build / Build (push) Successful in 50s
All checks were successful
Build / Build (push) Successful in 50s
This commit is contained in:
@@ -21,7 +21,7 @@ namespace PkmnLib.Plugin.Gen7.Scripts.Side;
|
||||
/// If a Light Clay is held when Aurora Veil is used, it will extend the duration of Aurora Veil from 5 to 8 turns.
|
||||
/// </remarks>
|
||||
[Script(ScriptCategory.Side, "aurora_veil")]
|
||||
public class AuroraVeilEffect : Script
|
||||
public class AuroraVeilEffect : Script, IScriptChangeIncomingMoveDamage, IScriptOnEndTurn
|
||||
{
|
||||
public int NumberOfTurns { get; set; }
|
||||
|
||||
@@ -37,7 +37,7 @@ public class AuroraVeilEffect : Script
|
||||
/// <param name="owner"></param>
|
||||
/// <param name="battle"></param>
|
||||
/// <inheritdoc />
|
||||
public override void OnEndTurn(IScriptSource owner, IBattle battle)
|
||||
public void OnEndTurn(IScriptSource owner, IBattle battle)
|
||||
{
|
||||
if (NumberOfTurns > 0)
|
||||
NumberOfTurns--;
|
||||
@@ -46,7 +46,7 @@ public class AuroraVeilEffect : Script
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void ChangeIncomingMoveDamage(IExecutingMove move, IPokemon target, byte hit, ref uint damage)
|
||||
public void ChangeIncomingMoveDamage(IExecutingMove move, IPokemon target, byte hit, ref uint damage)
|
||||
{
|
||||
var hitData = move.GetHitData(target, hit);
|
||||
if (hitData.IsCritical)
|
||||
|
||||
Reference in New Issue
Block a user