Remove redundant variable controllerOfFirstTarget
@@ -2,7 +2,6 @@ package mage.target.common;
import mage.abilities.Ability;
import mage.cards.Card;
-import mage.constants.CommanderCardType;
import mage.constants.Zone;
import mage.filter.FilterCard;
import mage.game.Game;
@@ -10,8 +9,9 @@ import mage.game.events.TargetEvent;
import mage.players.Player;
import mage.target.TargetCard;
-import java.util.*;
-import java.util.stream.Collectors;
+import java.util.HashSet;
+import java.util.Set;
+import java.util.UUID;
/**
* @author LevelX2
@@ -68,8 +68,7 @@ public class TargetCardInASingleGraveyard extends TargetCard {
continue;
}
- UUID ownerOfCardId = targetCard.getOwnerId();
- controllerOfFirstTarget = ownerOfCardId;
+ controllerOfFirstTarget = targetCard.getOwnerId();
break; // Only need the first UUID since they will all be the same
}
}
