- Fixed ChangeZoneAll, TapAll, UntapAll effect

This commit is contained in:
swordshine
2013-06-22 10:29:43 +00:00
parent b703546c80
commit 615abebe99
3 changed files with 3 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ public class ChangeZoneAllEffect extends SpellAbilityEffect {
List<Player> tgtPlayers = getTargetPlayers(sa);
final Game game = sa.getActivatingPlayer().getGame();
if ((tgtPlayers == null) || tgtPlayers.isEmpty() || sa.hasParam("UseAllOriginZones")) {
if (!sa.usesTargeting() || sa.hasParam("UseAllOriginZones")) {
cards = game.getCardsIn(origin);
} else if (origin.contains(ZoneType.Library) && sa.hasParam("Search")) {
// Search library using changezoneall effect need a param "Search"

View File

@@ -40,7 +40,7 @@ public class TapAllEffect extends SpellAbilityEffect {
final List<Player> tgtPlayers = getTargetPlayers(sa);
if ((tgtPlayers == null) || tgtPlayers.isEmpty()) {
if (!sa.usesTargeting()) {
cards = game.getCardsIn(ZoneType.Battlefield);
} else {
cards = new ArrayList<Card>();

View File

@@ -38,7 +38,7 @@ public class UntapAllEffect extends SpellAbilityEffect {
valid = sa.getParam("ValidCards");
}
if (tgtPlayers.isEmpty()) {
if (!sa.usesTargeting()) {
list = sa.getActivatingPlayer().getGame().getCardsIn(ZoneType.Battlefield);
} else {
list = new ArrayList<Card>();