[C13] Added Azorius Herald, Oloro, Ageless Ascetic and Kingming 'Sleeping Dragon'. Sime fixes to commander handling.

This commit is contained in:
LevelX2 2013-11-25 07:28:56 +01:00
parent a85f4a9848
commit 0ad2d040b1
18 changed files with 442 additions and 32 deletions

View file

@ -52,6 +52,7 @@ import org.apache.log4j.Logger;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import mage.game.command.Emblem;
/**
@ -608,10 +609,15 @@ public abstract class AbilityImpl<T extends AbilityImpl<T>> implements Ability {
@Override
public boolean isInUseableZone(Game game, MageObject source, boolean checkLKI) {
// emblem are always actual (also true for a commander? LevelX)
if (zone.equals(Zone.COMMAND)) {
return true;
if (this.getSourceId() == null) { // commander effects
return true;
}
MageObject object = game.getObject(this.getSourceId());
// emblem are always actual
if (object != null && object instanceof Emblem) {
return true;
}
}
// try LKI first