Tweaks and fixes for Pokemon capture
Build / Build (push) Successful in 1m34s

This commit is contained in:
Deukhoofd committed 2025-08-03 12:00:20 +02:00
1 parent cccffc4954
commit a5675024a4
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)
{