mirror of
https://github.com/correl/mage.git
synced 2024-12-27 03:00:13 +00:00
Some formatting.
This commit is contained in:
parent
d27540a502
commit
10f6cbc2d5
3 changed files with 7 additions and 8 deletions
|
@ -31,7 +31,6 @@ package mage.abilities.costs.common;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.costs.CostImpl;
|
import mage.abilities.costs.CostImpl;
|
||||||
import mage.cards.Card;
|
import mage.cards.Card;
|
||||||
|
@ -47,7 +46,7 @@ import mage.target.common.TargetCardInHand;
|
||||||
*/
|
*/
|
||||||
public class ExileFromHandCost extends CostImpl {
|
public class ExileFromHandCost extends CostImpl {
|
||||||
|
|
||||||
List<Card> cards = new ArrayList<Card>();
|
List<Card> cards = new ArrayList<>();
|
||||||
|
|
||||||
public ExileFromHandCost(TargetCardInHand target) {
|
public ExileFromHandCost(TargetCardInHand target) {
|
||||||
this.addTarget(target);
|
this.addTarget(target);
|
||||||
|
|
|
@ -55,8 +55,8 @@ import mage.watchers.common.CommanderCombatDamageWatcher;
|
||||||
|
|
||||||
public abstract class GameCommanderImpl extends GameImpl {
|
public abstract class GameCommanderImpl extends GameImpl {
|
||||||
|
|
||||||
private final Map<UUID, Cards> mulliganedCards = new HashMap<UUID, Cards>();
|
private final Map<UUID, Cards> mulliganedCards = new HashMap<>();
|
||||||
private final Set<CommanderCombatDamageWatcher> commanderCombatWatcher = new HashSet<CommanderCombatDamageWatcher>();
|
private final Set<CommanderCombatDamageWatcher> commanderCombatWatcher = new HashSet<>();
|
||||||
|
|
||||||
public GameCommanderImpl(MultiplayerAttackOption attackOption, RangeOfInfluence range, int freeMulligans) {
|
public GameCommanderImpl(MultiplayerAttackOption attackOption, RangeOfInfluence range, int freeMulligans) {
|
||||||
super(attackOption, range, freeMulligans);
|
super(attackOption, range, freeMulligans);
|
||||||
|
|
|
@ -51,8 +51,8 @@ import mage.watchers.Watcher;
|
||||||
*/
|
*/
|
||||||
public class ProwlWatcher extends Watcher {
|
public class ProwlWatcher extends Watcher {
|
||||||
|
|
||||||
private Map<UUID, Set<String>> damagingSubtypes = new HashMap<UUID, Set<String>>();
|
private final Map<UUID, Set<String>> damagingSubtypes = new HashMap<>();
|
||||||
private Set<UUID> allSubtypes = new HashSet<UUID>();
|
private final Set<UUID> allSubtypes = new HashSet<>();
|
||||||
|
|
||||||
public ProwlWatcher() {
|
public ProwlWatcher() {
|
||||||
super("Prowl", WatcherScope.GAME);
|
super("Prowl", WatcherScope.GAME);
|
||||||
|
@ -82,7 +82,7 @@ public class ProwlWatcher extends Watcher {
|
||||||
} else {
|
} else {
|
||||||
Set<String> subtypes = damagingSubtypes.get(creature.getControllerId());
|
Set<String> subtypes = damagingSubtypes.get(creature.getControllerId());
|
||||||
if (subtypes == null) {
|
if (subtypes == null) {
|
||||||
subtypes = new LinkedHashSet<String>();
|
subtypes = new LinkedHashSet<>();
|
||||||
}
|
}
|
||||||
subtypes.addAll(creature.getSubtype());
|
subtypes.addAll(creature.getSubtype());
|
||||||
damagingSubtypes.put(creature.getControllerId(), subtypes);
|
damagingSubtypes.put(creature.getControllerId(), subtypes);
|
||||||
|
|
Loading…
Reference in a new issue