This commit is contained in:
3 files changed
+27
-2
No files matched your search
@@ -25,6 +25,16 @@ public abstract class PokeballScript : ItemScript
|
||||
// Override this method in derived classes to add custom behavior after a successful capture.
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override bool IsItemUsable => true;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override bool RequiresTarget => true;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override bool IsTargetValid(IPokemon target) =>
|
||||
target.BattleData is not null && target.BattleData.Battle.IsWildBattle;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void OnUseWithTarget(IPokemon target, EventHook eventHook)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user