mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
Apply pqnet's patch to fix bug 704.
(IllegalStateException from using getOpponent() instead of getOpponents())
This commit is contained in:
@@ -220,10 +220,13 @@ public abstract class TriggerReplacementBase {
|
||||
}
|
||||
List<Card> list = new ArrayList<Card>();
|
||||
if (presentPlayer.equals("You") || presentPlayer.equals("Any")) {
|
||||
list.addAll(this.getHostCard().getController().getCardsIn(presentZone));
|
||||
for (Player p : this.getHostCard().getController().getOpponents())
|
||||
list.addAll(p.getCardsIn(presentZone));
|
||||
|
||||
}
|
||||
if (presentPlayer.equals("Opponent") || presentPlayer.equals("Any")) {
|
||||
list.addAll(this.getHostCard().getController().getOpponent().getCardsIn(presentZone));
|
||||
for (Player p : this.getHostCard().getController().getOpponents())
|
||||
list.addAll(p.getCardsIn(presentZone));
|
||||
}
|
||||
|
||||
list = CardLists.getValidCards(list, sIsPresent.split(","), this.getHostCard().getController(), this.getHostCard());
|
||||
|
||||
Reference in New Issue
Block a user