Phyrexian Dreadnought - Fixed that it can't be sacrificed if it's phased out.

This commit is contained in:
LevelX2 2016-04-07 23:41:16 +02:00
parent 68fdcddd32
commit f688980573

View file

@ -1025,7 +1025,7 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
@Override
public boolean sacrifice(UUID sourceId, Game game) {
//20091005 - 701.13
if (!game.replaceEvent(GameEvent.getEvent(EventType.SACRIFICE_PERMANENT, objectId, sourceId, controllerId))) {
if (isPhasedIn() && !game.replaceEvent(GameEvent.getEvent(EventType.SACRIFICE_PERMANENT, objectId, sourceId, controllerId))) {
// Commander replacement effect or Rest in Peace (exile instead of graveyard) in play does not prevent successful sacrifice
// so the return value of the moveToZone is not taken into account here
moveToZone(Zone.GRAVEYARD, sourceId, game, false);