forked from External/mage
* Fixed that manifested or morphed creatures did wrongly trigger "enters the battlefield" abilities with their card attributes (e.g red card manifested triggered Foundry Street Denizens boost ability).
This commit is contained in:
parent
f8439a7729
commit
ba1fb775b2
9 changed files with 113 additions and 59 deletions
|
|
@ -55,6 +55,19 @@ public class MageObjectReference implements Comparable<MageObjectReference> {
|
|||
this.zoneChangeCounter = card.getZoneChangeCounter();
|
||||
}
|
||||
|
||||
/**
|
||||
* That values manually (can be used to let it reference to a Permanent
|
||||
* that is not yet on the battlefield.
|
||||
*
|
||||
* @param sourceId
|
||||
* @param zoneChangeCounter
|
||||
* @param game
|
||||
*/
|
||||
public MageObjectReference(UUID sourceId, int zoneChangeCounter, Game game) {
|
||||
this.sourceId = sourceId;
|
||||
this.zoneChangeCounter = zoneChangeCounter;
|
||||
}
|
||||
|
||||
public MageObjectReference(UUID sourceId, Game game) {
|
||||
MageObject mageObject = game.getObject(sourceId);
|
||||
this.sourceId = sourceId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue