forked from External/mage
Improved some source related filters in effects:
* Fixed that some cards ignore range of influence or source related filters; * Improved ChosenSubtypePredicate to work with gain abilities;
This commit is contained in:
parent
fdcf2c616b
commit
a307e5934f
32 changed files with 291 additions and 197 deletions
|
|
@ -2276,7 +2276,7 @@ public abstract class GameImpl implements Game, Serializable {
|
|||
filterLegendName.add(SuperType.LEGENDARY.getPredicate());
|
||||
filterLegendName.add(new NamePredicate(legend.getName()));
|
||||
filterLegendName.add(new ControllerIdPredicate(legend.getControllerId()));
|
||||
if (getBattlefield().contains(filterLegendName, legend.getControllerId(), this, 2)) {
|
||||
if (getBattlefield().contains(filterLegendName, null, legend.getControllerId(), this, 2)) {
|
||||
if (!replaceEvent(GameEvent.getEvent(GameEvent.EventType.DESTROY_PERMANENT_BY_LEGENDARY_RULE, legend.getId(), legend.getControllerId()))) {
|
||||
Player controller = this.getPlayer(legend.getControllerId());
|
||||
if (controller != null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue