* Switched from UUID to MageObjectReference to handle affected objects of continuous effects. Solvng problems with objects that changed (multiple times) zones while the effect lasts.

This commit is contained in:
LevelX2 2014-12-25 02:03:21 +01:00
parent 9ff1f60903
commit 02ba80b719
41 changed files with 407 additions and 342 deletions

View file

@ -128,4 +128,12 @@ public class MageObjectReference implements Comparable<MageObjectReference> {
return null;
}
public Card getCard(Game game) {
Card card = game.getPermanent(sourceId);
if (card != null && card.getZoneChangeCounter() == zoneChangeCounter) {
return card;
}
return null;
}
}