Some changes/fixes to epic effect and cards using it.

This commit is contained in:
LevelX2 2014-02-08 14:08:53 +01:00
parent 1c2f0ae65d
commit 81d630b65b
10 changed files with 72 additions and 30 deletions

View file

@ -388,6 +388,15 @@ public abstract class GameImpl<T extends GameImpl<T>> implements Game, Serializa
return state.getPermanent(permanentId);
}
@Override
public Permanent getPermanentOrLKIBattlefield(UUID permanentId) {
Permanent permanent = state.getPermanent(permanentId);
if (permanent == null) {
permanent = (Permanent) this.getLastKnownInformation(permanentId, Zone.BATTLEFIELD);
}
return permanent;
}
@Override
public Card getCard(UUID cardId) {
if (cardId == null) {