* Cavern of Soul - Fixed a bug that caused that every spell could not be countered that was cast using the first (colorless) mana ability (fixes #391).

This commit is contained in:
LevelX2 2014-03-12 15:53:27 +01:00
parent 0356272cae
commit 1e7cfa086b
4 changed files with 34 additions and 4 deletions

View file

@ -327,7 +327,7 @@ public class ManaPool implements Serializable {
for (ConditionalMana mana : getConditionalMana()) {
if (mana.get(manaType) > 0 && mana.apply(ability, game, mana.getManaProducerId())) {
mana.set(manaType, mana.get(manaType) - 1);
game.fireEvent(new GameEvent(GameEvent.EventType.MANA_PAYED, ability.getId(), mana.getManaProducerId(), ability.getControllerId()));
game.fireEvent(new GameEvent(GameEvent.EventType.MANA_PAYED, ability.getId(), mana.getManaProducerId(), ability.getControllerId(), 0, mana.getFlag()));
break;
}
}

View file

@ -66,6 +66,7 @@ public class ManaPoolItem implements Serializable {
this.conditionalMana = conditionalMana;
this.sourceId = sourceId;
this.conditionalMana.setManaProducerId(sourceId);
this.flag = conditionalMana.getFlag();
}
public ManaPoolItem(final ManaPoolItem item) {