File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed
forge-game/src/main/java/forge/game/spellability
forge-gui/src/main/java/forge/gamemodes/net/server Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -335,13 +335,6 @@ public final boolean areMet(final SpellAbility sa) {
335335 }
336336 }
337337
338- if (this .getCardsInHand () != -1 ) {
339- // Can handle Library of Alexandria, or Hellbent
340- if (activator .getCardsIn (ZoneType .Hand ).size () != this .getCardsInHand ()) {
341- return false ;
342- }
343- }
344-
345338 if (this .getColorToCheck () != null ) {
346339 if (!host .hasChosenColor (this .getColorToCheck ())) {
347340 return false ;
Original file line number Diff line number Diff line change @@ -540,8 +540,8 @@ private void pauseNetGuiGame(final int slotIndex) {
540540
541541 for (final Player p : game .getPlayers ()) {
542542 final IGuiGame gui = hostedMatch .getGuiForPlayer (p );
543- if (gui instanceof NetGuiGame && (( NetGuiGame ) gui ) .getSlotIndex () == slotIndex ) {
544- (( NetGuiGame ) gui ) .pause ();
543+ if (gui instanceof NetGuiGame ngg && ngg .getSlotIndex () == slotIndex ) {
544+ ngg .pause ();
545545 return ;
546546 }
547547 }
@@ -558,8 +558,7 @@ private void resumeAndResync(final RemoteClient client) {
558558 // so name matching is unreliable
559559 for (final Player p : game .getPlayers ()) {
560560 final IGuiGame gui = hostedMatch .getGuiForPlayer (p );
561- if (gui instanceof NetGuiGame && ((NetGuiGame ) gui ).getSlotIndex () == slotIndex ) {
562- final NetGuiGame netGui = (NetGuiGame ) gui ;
561+ if (gui instanceof NetGuiGame netGui && netGui .getSlotIndex () == slotIndex ) {
563562 netGui .resume ();
564563
565564 // Send current GameView before openView (matches HostedMatch.startGame() ordering)
You can’t perform that action at this time.
0 commit comments