Tweaks and fixes for Pokemon capture
All checks were successful
Build / Build (push) Successful in 1m34s
All checks were successful
Build / Build (push) Successful in 1m34s
This commit is contained in:
@@ -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