mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
- 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:
@@ -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 wouldn’t 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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user