- Implemented rule 901.6 for Planechase games. Should fix an issue with the planar deck cards disappearing when a player loses the game on his or her own turn.

This commit is contained in:
Agetian
2017-08-17 04:13:32 +00:00
parent a0451cfab0
commit b31ca263fd

View File

@@ -654,6 +654,16 @@ public class Game {
CardCollectionView cards = this.getCardsInGame(); CardCollectionView cards = this.getCardsInGame();
for(Card c : cards) { for(Card c : cards) {
// 901.6: If the current planar controller would leave the game, instead the next player
// in turn order that wouldnt leave the game becomes the planar controller, then the old
// planar controller leaves the game.
if (c.isPlane() || c.isPhenomenon()) {
c.removeTempController(p);
c.setController(getPhaseHandler().getNextTurn(), getNextTimestamp());
getAction().controllerChangeZoneCorrection(c);
continue;
}
if (c.getOwner().equals(p)) { if (c.getOwner().equals(p)) {
c.ceaseToExist(); c.ceaseToExist();
} else { } else {