* Improved handling of asThoughtAs approval by abilities that allows a clear and easy assignment of the approving effect.

This commit is contained in:
LevelX2 2020-08-21 14:58:22 +02:00
parent 0565d32f55
commit 8105d8b26c
117 changed files with 523 additions and 442 deletions

View file

@ -34,6 +34,7 @@ import java.util.ArrayList;
import java.util.EnumSet;
import java.util.List;
import java.util.UUID;
import mage.MageIdentifier;
/**
* @author BetaSteward_at_googlemail.com
@ -690,4 +691,15 @@ public class StackAbility extends StackObjImpl implements Ability {
|| (this.getOriginalId().equals(ability.getOriginalId()))
|| (this.getClass() == ability.getClass() && this.getRule().equals(ability.getRule()));
}
@Override
public MageIdentifier getIdentifier() {
return ability.getIdentifier();
}
@Override
public AbilityImpl setIdentifier(MageIdentifier identifier) {
throw new UnsupportedOperationException("Not supported.");
}
}