forked from External/mage
* 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:
parent
9ff1f60903
commit
02ba80b719
41 changed files with 407 additions and 342 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue