forked from External/mage
* Reworked ENTERS_THE_BATTLEFIELD event for replacement effects. Some rework to card movement.
This commit is contained in:
parent
c642165020
commit
59ef2a2889
247 changed files with 1842 additions and 2287 deletions
|
|
@ -958,6 +958,10 @@ public abstract class AbilityImpl implements Ability {
|
|||
if (object instanceof Permanent) {
|
||||
return false;
|
||||
} else {
|
||||
Permanent permanent = game.getPermanentEntering(getSourceId());
|
||||
if (permanent != null && permanent.getAbilities().contains(this)) {
|
||||
return true;
|
||||
}
|
||||
// check if it's an ability that is temporary gained to a card
|
||||
Abilities<Ability> otherAbilities = game.getState().getAllOtherAbilities(this.getSourceId());
|
||||
if (otherAbilities == null || !otherAbilities.contains(this)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue