mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Update CardImpl.java
Added adjustTargets case for Aryel, Knight of Windgrace
This commit is contained in:
parent
a30c9cc682
commit
4e313e8792
1 changed files with 10 additions and 0 deletions
|
@ -389,6 +389,16 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
|
||||||
ability.getTargets().clear();
|
ability.getTargets().clear();
|
||||||
ability.getTargets().add(new TargetPermanent(minTargets, maxTargets, permanentFilter, false));
|
ability.getTargets().add(new TargetPermanent(minTargets, maxTargets, permanentFilter, false));
|
||||||
break;
|
break;
|
||||||
|
case ARYEL:// Aryel, Knight of Windgrace only
|
||||||
|
xValue = ability.cost.getFixedCostsFromAnnouncedValue();
|
||||||
|
oldTargetPermanent = (TargetPermanent) ability.getTargets().get(0);
|
||||||
|
minTargets = oldTargetPermanent.getMinNumberOfTargets();
|
||||||
|
maxTargets = oldTargetPermanent.getMaxNumberOfTargets();
|
||||||
|
permanentFilter = oldTargetPermanent.getFilter().copy();
|
||||||
|
permanentFilter.add(new PowerPredicate(ComparisonType.FEWER_THAN, xValue + 1));
|
||||||
|
ability.getTargets().clear();
|
||||||
|
ability.getTargets().add(new TargetPermanent(minTargets, maxTargets, permanentFilter, false));
|
||||||
|
break;
|
||||||
case VERSE_COUNTER_TARGETS:
|
case VERSE_COUNTER_TARGETS:
|
||||||
Permanent sourcePermanent = game.getPermanentOrLKIBattlefield(ability.getSourceId());
|
Permanent sourcePermanent = game.getPermanentOrLKIBattlefield(ability.getSourceId());
|
||||||
if (sourcePermanent != null) {
|
if (sourcePermanent != null) {
|
||||||
|
|
Loading…
Reference in a new issue