mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Timetwister was querying Stack from player... had to add, otherwise it would crash
This commit is contained in:
@@ -876,7 +876,8 @@ public abstract class Player extends GameEntity {
|
||||
* @param player a {@link forge.Player} object.
|
||||
*/
|
||||
public CardList getCardsIn(final Constant.Zone zone) {
|
||||
return new CardList(getZone(zone).getCards());
|
||||
Card[] cards = zone == Zone.Stack ? AllZone.getStackZone().getCards() : getZone(zone).getCards();
|
||||
return new CardList(cards);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user