mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
minor linting
This commit is contained in:
parent
50acfad59c
commit
663ada11d1
5 changed files with 6 additions and 17 deletions
|
|
@ -103,9 +103,7 @@ class LlawanCephalidRuleModifyingEffect extends ContinuousRuleModifyingEffectImp
|
|||
Player controller = game.getPlayer(source.getControllerId());
|
||||
if (controller != null && game.isOpponent(controller, event.getPlayerId())) {
|
||||
Card card = game.getCard(event.getSourceId());
|
||||
if (card != null && filter.match(card, source.getControllerId(), source, game)) {
|
||||
return true;
|
||||
}
|
||||
return card != null && filter.match(card, source.getControllerId(), source, game);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -154,9 +154,7 @@ class TargetCardInMuseVesselExile extends TargetCardInExile {
|
|||
if (sourceCard != null) {
|
||||
UUID exileId = CardUtil.getCardExileZoneId(game, source.getSourceId());
|
||||
ExileZone exile = game.getExile().getExileZone(exileId);
|
||||
if (exile != null && !exile.isEmpty()) {
|
||||
return true;
|
||||
}
|
||||
return exile != null && !exile.isEmpty();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,11 +74,7 @@ class NissasEncouragementEffect extends OneShotEffect {
|
|||
|
||||
NissasEncouragementTarget target = new NissasEncouragementTarget(filter);
|
||||
if (player.searchLibrary(target, source, game)) {
|
||||
boolean searchGY = false;
|
||||
|
||||
if (target.getTargets().size() < 3) {
|
||||
searchGY = true;
|
||||
}
|
||||
boolean searchGY = target.getTargets().size() < 3;
|
||||
|
||||
Map<String, Integer> foundCards = new HashMap<>();
|
||||
foundCards.put("Forest", 0);
|
||||
|
|
|
|||
|
|
@ -216,7 +216,7 @@ public class TargetCard extends TargetObject {
|
|||
|
||||
@Override
|
||||
public Set<UUID> possibleTargets(UUID sourceControllerId, Game game) {
|
||||
return possibleTargets(sourceControllerId, (Ability) null, game);
|
||||
return possibleTargets(sourceControllerId, null, game);
|
||||
}
|
||||
|
||||
public Set<UUID> possibleTargets(UUID sourceControllerId, Cards cards, Ability source, Game game) {
|
||||
|
|
|
|||
|
|
@ -96,11 +96,8 @@ public class TargetCardInExile extends TargetCard {
|
|||
}
|
||||
} else {
|
||||
ExileZone exileZone = game.getExile().getExileZone(zoneId);
|
||||
if (exileZone != null) {
|
||||
if (exileZone.count(filter, sourceControllerId, source, game) >= this.minNumberOfTargets) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return exileZone != null && exileZone.count(filter, sourceControllerId, source, game) >= this.minNumberOfTargets;
|
||||
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue