mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +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().add(new TargetPermanent(minTargets, maxTargets, permanentFilter, false));
|
||||
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:
|
||||
Permanent sourcePermanent = game.getPermanentOrLKIBattlefield(ability.getSourceId());
|
||||
if (sourcePermanent != null) {
|
||||
|
|
Loading…
Reference in a new issue