mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Fixed ChangeZoneAll, TapAll, UntapAll effect
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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>();
|
||||
|
||||
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user