mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 20:29:19 -08:00
[DOM] Aryel update.
This commit is contained in:
parent
3820c6155c
commit
d51e8c70b4
2 changed files with 2 additions and 13 deletions
|
|
@ -64,8 +64,6 @@ import mage.target.common.TargetCreaturePermanent;
|
|||
*/
|
||||
public class AryelKnightOfWindgrace extends CardImpl {
|
||||
|
||||
private static final FilterCreaturePermanent filter2 = new FilterCreaturePermanent("creature with power X or less");
|
||||
|
||||
private UUID adjustTargetAbilityId;
|
||||
|
||||
public AryelKnightOfWindgrace(UUID ownerId, CardSetInfo setInfo) {
|
||||
|
|
@ -100,12 +98,13 @@ public class AryelKnightOfWindgrace extends CardImpl {
|
|||
public void adjustTargets(Ability ability, Game game) {
|
||||
if (adjustTargetAbilityId.equals(ability.getOriginalId())) {
|
||||
for (VariableCost cost : ability.getCosts().getVariableCosts()) {
|
||||
if (cost instanceof AryelKnightOfWindgrace) {
|
||||
if (cost instanceof AryelTapXTargetCost) {
|
||||
int value = ((AryelTapXTargetCost) cost).getAmount();
|
||||
FilterCreaturePermanent filter = new FilterCreaturePermanent("creature with power " + value + " or less");
|
||||
filter.add(new PowerPredicate(ComparisonType.FEWER_THAN, value + 1));
|
||||
ability.getTargets().clear();
|
||||
ability.addTarget(new TargetCreaturePermanent(filter));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue