forked from External/mage
* Improved handling of asThoughtAs approval by abilities that allows a clear and easy assignment of the approving effect.
This commit is contained in:
parent
0565d32f55
commit
8105d8b26c
117 changed files with 523 additions and 442 deletions
|
|
@ -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.");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue