Move itemscript back to using IPokemon instead of IBattlePokemon
All checks were successful
Build / Build (push) Successful in 3m24s
All checks were successful
Build / Build (push) Successful in 3m24s
This commit is contained in:
@@ -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