* Bolas's Citadel - fixed error on land play from library's top;

This commit is contained in:
Oleg Agafonov 2019-05-03 19:07:09 +04:00
parent af574443f8
commit c1dea3456c

View file

@ -104,8 +104,10 @@ class BolassCitadelPlayTheTopCardEffect extends AsThoughEffectImpl {
Costs costs = new CostsImpl();
costs.add(cost);
// check for additional costs that must be paid
for (Cost additionalCost : cardOnTop.getSpellAbility().getCosts()) {
costs.add(additionalCost);
if (cardOnTop.getSpellAbility() != null) {
for (Cost additionalCost : cardOnTop.getSpellAbility().getCosts()) {
costs.add(additionalCost);
}
}
controller.setCastSourceIdWithAlternateMana(cardOnTop.getId(), null, costs);
return true;