mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
Remove redundant variable controllerOfFirstTarget (#9039)
This commit is contained in:
parent
33eeffa4d0
commit
853cf591aa
1 changed files with 8 additions and 9 deletions
|
|
@ -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
|
||||
|
|
@ -48,10 +48,10 @@ public class TargetCardInASingleGraveyard extends TargetCard {
|
|||
/**
|
||||
* Set of UUIDs of all possible targets
|
||||
*
|
||||
* @param sourceControllerId UUID of the ability's controller
|
||||
* @param source Ability which requires the targets
|
||||
* @param game Current game
|
||||
* @return Set of the UUIDs of possible targets
|
||||
* @param sourceControllerId UUID of the ability's controller
|
||||
* @param source Ability which requires the targets
|
||||
* @param game Current game
|
||||
* @return Set of the UUIDs of possible targets
|
||||
*/
|
||||
@Override
|
||||
public Set<UUID> possibleTargets(UUID sourceControllerId, Ability source, Game game) {
|
||||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue