mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
- Fixed #6564
This commit is contained in:
parent
7594c4144c
commit
5dab330a9d
1 changed files with 7 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue