mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Additional fix about tgtPlayers
This commit is contained in:
@@ -49,7 +49,7 @@ public class ChangeZoneAllEffect extends SpellAbilityEffect {
|
|||||||
List<Player> tgtPlayers = getTargetPlayers(sa);
|
List<Player> tgtPlayers = getTargetPlayers(sa);
|
||||||
final Game game = sa.getActivatingPlayer().getGame();
|
final Game game = sa.getActivatingPlayer().getGame();
|
||||||
|
|
||||||
if ((tgtPlayers == null) || tgtPlayers.isEmpty() || sa.hasParam("UseAllOriginZones")) {
|
if ((!sa.usesTargeting() && !sa.hasParam("Defined")) || sa.hasParam("UseAllOriginZones")) {
|
||||||
cards = game.getCardsIn(origin);
|
cards = game.getCardsIn(origin);
|
||||||
} else if (origin.contains(ZoneType.Library) && sa.hasParam("Search")) {
|
} else if (origin.contains(ZoneType.Library) && sa.hasParam("Search")) {
|
||||||
// Search library using changezoneall effect need a param "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);
|
final List<Player> tgtPlayers = getTargetPlayers(sa);
|
||||||
|
|
||||||
if (!sa.usesTargeting()) {
|
if (!sa.usesTargeting() && !sa.hasParam("Defined")) {
|
||||||
cards = game.getCardsIn(ZoneType.Battlefield);
|
cards = game.getCardsIn(ZoneType.Battlefield);
|
||||||
} else {
|
} else {
|
||||||
cards = new ArrayList<Card>();
|
cards = new ArrayList<Card>();
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ public class UntapAllEffect extends SpellAbilityEffect {
|
|||||||
valid = sa.getParam("ValidCards");
|
valid = sa.getParam("ValidCards");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!sa.usesTargeting()) {
|
if (!sa.usesTargeting() && !sa.hasParam("Defined")) {
|
||||||
list = sa.getActivatingPlayer().getGame().getCardsIn(ZoneType.Battlefield);
|
list = sa.getActivatingPlayer().getGame().getCardsIn(ZoneType.Battlefield);
|
||||||
} else {
|
} else {
|
||||||
list = new ArrayList<Card>();
|
list = new ArrayList<Card>();
|
||||||
|
|||||||
Reference in New Issue
Block a user