mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 14:02:05 -08:00
* 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:
parent
0356272cae
commit
1e7cfa086b
4 changed files with 34 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue