mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Fix Changing the type of spells on the stack
This commit is contained in:
parent
282443c231
commit
71a5e4e15a
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue