* Fixed that ETB abilities of manifested cards did wrongly trigger (e.g. the Constellation ability of Doomwake Giant manifested by Reality Shift).

This commit is contained in:
LevelX2 2015-01-23 13:51:38 +01:00
parent bc3dc9d548
commit aaed6935bc

View file

@ -103,9 +103,7 @@ public class TriggeredAbilities extends ConcurrentHashMap<String, TriggeredAbili
exists = false; exists = false;
if (object instanceof PermanentCard) { if (object instanceof PermanentCard) {
PermanentCard permanent = (PermanentCard)object; PermanentCard permanent = (PermanentCard)object;
if (permanent.isFaceDown()) { if (permanent.canTransform() && event.getType() == GameEvent.EventType.TRANSFORMED) {
exists = ability.getWorksFaceDown();
} else if (permanent.canTransform() && event.getType() == GameEvent.EventType.TRANSFORMED) {
exists = permanent.getCard().getAbilities().contains(ability); exists = permanent.getCard().getAbilities().contains(ability);
} }
} }