- revert changes in changezoneall effect, complicated situations here

This commit is contained in:
swordshine
2013-06-22 10:32:12 +00:00
parent 615abebe99
commit 62239488c9

View File

@@ -49,7 +49,7 @@ public class ChangeZoneAllEffect extends SpellAbilityEffect {
List<Player> tgtPlayers = getTargetPlayers(sa);
final Game game = sa.getActivatingPlayer().getGame();
if (!sa.usesTargeting() || sa.hasParam("UseAllOriginZones")) {
if ((tgtPlayers == null) || tgtPlayers.isEmpty() || 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"