Move itemscript back to using IPokemon instead of IBattlePokemon
Build / Build (push) Successful in 3m24s

This commit is contained in:
Deukhoofd committed 2026-08-28 16:12:19 +02:00
1 parent 41b7e90c3c
commit e38bb05007
4 files changed
+13 -11

No files matched your search

@@ -29,11 +29,11 @@ public class HealingItem : ItemScript
}
/// <inheritdoc />
public override bool IsTargetValid(IBattlePokemon target) =>
public override bool IsTargetValid(IPokemon target) =>
!target.IsFainted && target.CurrentHealth < target.MaxHealth;
/// <inheritdoc />
public override void OnUseWithTarget(IBattlePokemon target, EventHook eventHook)
public override void OnUseWithTarget(IPokemon target, EventHook eventHook)
{
target.Heal(_healAmount, customEventHook: eventHook);
}