Fix Changing the type of spells on the stack

This commit is contained in:
Samuel Sandeen 2016-08-28 18:21:58 -04:00
parent 282443c231
commit 71a5e4e15a

View file

@ -137,9 +137,11 @@ class ConspiracyEffect extends ContinuousEffectImpl {
// creature spells you control // creature spells you control
for (Iterator<StackObject> iterator = game.getStack().iterator(); iterator.hasNext();) { for (Iterator<StackObject> iterator = game.getStack().iterator(); iterator.hasNext();) {
StackObject stackObject = iterator.next(); StackObject stackObject = iterator.next();
if (stackObject.getControllerId().equals(source.getControllerId()) && if (stackObject instanceof Spell &&
stackObject.getControllerId().equals(source.getControllerId()) &&
stackObject.getCardType().contains(CardType.CREATURE)) { stackObject.getCardType().contains(CardType.CREATURE)) {
setCreatureSubtype(stackObject, choice, game); Card card = ((Spell) stackObject).getCard();
setCreatureSubtype(card, choice, game);
} }
} }
// creatures you control // creatures you control