mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
* Added target replacement check to canBeTargeted check of permanent to get correct possible targets (fixes #381).
This commit is contained in:
parent
9fcfb8527a
commit
0d1921d8cb
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue