Move itemscript back to using IPokemon instead of IBattlePokemon
Build / Build (push) Successful in 3m24s
Build / Build (push) Successful in 3m24s
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user