mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
[C13] Added Azorius Herald, Oloro, Ageless Ascetic and Kingming 'Sleeping Dragon'. Sime fixes to commander handling.
This commit is contained in:
parent
a85f4a9848
commit
0ad2d040b1
18 changed files with 442 additions and 32 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue