forked from External/mage
* Karn Liberated - Fixed that a with Karn's ability exiled commander was not put to battlefield after game restart.
This commit is contained in:
parent
217517feee
commit
d87a4e4c9b
5 changed files with 122 additions and 65 deletions
|
|
@ -1,5 +1,7 @@
|
|||
package mage.game;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.common.InfoEffect;
|
||||
|
|
@ -16,9 +18,6 @@ import mage.players.Player;
|
|||
import mage.watchers.common.CommanderInfoWatcher;
|
||||
import mage.watchers.common.CommanderPlaysCountWatcher;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
|
||||
public abstract class GameCommanderImpl extends GameImpl {
|
||||
|
||||
// private final Map<UUID, Cards> mulliganedCards = new HashMap<>();
|
||||
|
|
@ -78,7 +77,9 @@ public abstract class GameCommanderImpl extends GameImpl {
|
|||
}
|
||||
|
||||
public void initCommander(Card commander, Player player) {
|
||||
commander.moveToZone(Zone.COMMAND, null, this, true);
|
||||
if (!Zone.EXILED.equals(getState().getZone(commander.getId()))) { // Exile check needed for Karn Liberated restart
|
||||
commander.moveToZone(Zone.COMMAND, null, this, true);
|
||||
}
|
||||
commander.getAbilities().setControllerId(player.getId());
|
||||
|
||||
Ability ability = new SimpleStaticAbility(Zone.COMMAND, new InfoEffect("Commander effects"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue