This commit is contained in:
jeffwadsworth 2020-06-04 11:08:32 -05:00
parent 7594c4144c
commit 5dab330a9d

View file

@ -34,7 +34,8 @@ public final class HaldanAvidArcanist extends CardImpl {
// Partner with Pako, Arcane Retriever
this.addAbility(new PartnerWithAbility("Pako, Arcane Retriever"));
// You may play noncreature cards from exile with fetch counters on them if you exiled them, and you may spend mana as though it were mana of any color to cast those spells.
// You may play noncreature cards from exile with fetch counters on them if you
// exiled them, and you may spend mana as though it were mana of any color to cast those spells.
Ability ability = new SimpleStaticAbility(new HaldanAvidArcanistCastFromExileEffect());
ability.addEffect(new HaldanAvidArcanistSpendAnyManaEffect());
this.addAbility(ability);
@ -56,7 +57,9 @@ public final class HaldanAvidArcanist extends CardImpl {
return false;
}
Card card = game.getCard(sourceId);
return card != null && !card.isCreature() && card.getCounters(game).containsKey(CounterType.FETCH);
return card != null
&& !card.isCreature()
&& card.getCounters(game).containsKey(CounterType.FETCH);
}
}
@ -110,11 +113,11 @@ class HaldanAvidArcanistSpendAnyManaEffect extends AsThoughEffectImpl implements
@Override
public boolean applies(UUID objectId, Ability source, UUID affectedControllerId, Game game) {
return HaldanAvidArcanist.checkCard(objectId, source, affectedControllerId, game);
return true;
}
@Override
public ManaType getAsThoughManaType(ManaType manaType, ManaPoolItem mana, UUID affectedControllerId, Ability source, Game game) {
return mana.getFirstAvailable();
}
}
}