Tweaks and fixes for Pokemon capture
All checks were successful
Build / Build (push) Successful in 1m34s

This commit is contained in:
2025-08-03 12:00:20 +02:00
parent cccffc4954
commit a5675024a4
3 changed files with 27 additions and 2 deletions

View File

@@ -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)
{