forked from External/mage
style: remove some static imports
This commit is contained in:
parent
d61de05eb8
commit
b85d2883e3
11 changed files with 18 additions and 34 deletions
|
|
@ -1,5 +1,6 @@
|
|||
package mage.players;
|
||||
|
||||
import com.google.common.collect.Iterables;
|
||||
import mage.MageItem;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.Mode;
|
||||
|
|
@ -33,8 +34,6 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
|
||||
import static com.google.common.collect.Iterables.getOnlyElement;
|
||||
|
||||
/**
|
||||
* Empty player, do nothing, used for tests only
|
||||
*/
|
||||
|
|
@ -61,7 +60,7 @@ public class StubPlayer extends PlayerImpl {
|
|||
|
||||
@Override
|
||||
public boolean chooseTarget(Outcome outcome, Cards cards, TargetCard target, Ability source, Game game) {
|
||||
UUID cardId = getOnlyElement(cards.getCards(game)).getId();
|
||||
UUID cardId = Iterables.getOnlyElement(cards.getCards(game)).getId();
|
||||
if (chooseScry(game, cardId)) {
|
||||
target.add(cardId, game);
|
||||
return true;
|
||||
|
|
@ -240,4 +239,4 @@ public class StubPlayer extends PlayerImpl {
|
|||
public FilterMana getPhyrexianColors() {
|
||||
return (new FilterMana());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue