* 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:
LevelX2 2015-02-12 15:54:41 +01:00
parent f8439a7729
commit ba1fb775b2
9 changed files with 113 additions and 59 deletions

View file

@ -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;