* Added target replacement check to canBeTargeted check of permanent to get correct possible targets (fixes #381).

This commit is contained in:
LevelX2 2014-02-09 11:22:33 +01:00
parent 9fcfb8527a
commit 0d1921d8cb

View file

@ -772,6 +772,11 @@ public abstract class PermanentImpl<T extends PermanentImpl<T>> extends CardImpl
if (hasProtectionFrom(source, game)) {
return false;
}
// needed to get the correct possible targets if target replacement effects are active
// e.g. Fiendslayer Paladin tried to target with Ultimate Price
if (game.replaceEvent(GameEvent.getEvent(EventType.TARGET, this.getId(), source.getId(), sourceControllerId))) {
return false;
}
}
return true;