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
@@ -41,7 +41,7 @@ public abstract class ItemScript : IDeepCloneable
|
||||
/// <summary>
|
||||
/// Returns whether the item is usable on the given target.
|
||||
/// </summary>
|
||||
public virtual bool IsTargetValid(IBattlePokemon target) => false;
|
||||
public virtual bool IsTargetValid(IPokemon target) => false;
|
||||
|
||||
/// <summary>
|
||||
/// Returns whether the item can be held by a Pokémon.
|
||||
@@ -51,7 +51,7 @@ public abstract class ItemScript : IDeepCloneable
|
||||
/// <summary>
|
||||
/// Returns whether the item can be held by the given target.
|
||||
/// </summary>
|
||||
public virtual bool CanTargetHold(IBattlePokemon pokemon) => true;
|
||||
public virtual bool CanTargetHold(IPokemon pokemon) => true;
|
||||
|
||||
/// <summary>
|
||||
/// Handles the use of the item.
|
||||
@@ -63,7 +63,7 @@ public abstract class ItemScript : IDeepCloneable
|
||||
/// <summary>
|
||||
/// Handles the use of the item on the given target.
|
||||
/// </summary>
|
||||
public virtual void OnUseWithTarget(IBattlePokemon target, EventHook eventHook)
|
||||
public virtual void OnUseWithTarget(IPokemon target, EventHook eventHook)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user