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:
@@ -533,7 +533,15 @@ public class BattleImpl : ScriptSource, IBattle
|
||||
var side = Sides[target.BattleData!.SideIndex];
|
||||
side.ForceClearPokemonFromField(target.BattleData.Position);
|
||||
}
|
||||
EventHook.Invoke(new CaptureAttemptEvent(target, attemptCapture));
|
||||
EventHook.Invoke(new CaptureAttemptEvent(target, attemptCapture, item));
|
||||
|
||||
if (!CanSlotBeFilled(sideIndex, position))
|
||||
{
|
||||
Sides[sideIndex].MarkPositionAsUnfillable(position);
|
||||
}
|
||||
Sides[sideIndex].ForceClearPokemonFromField(position);
|
||||
|
||||
ValidateBattleState();
|
||||
return attemptCapture;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user