From 5e18cdb25d924c1d41a1f3c1984f98ece141dde3 Mon Sep 17 00:00:00 2001 From: "jean.chalard" Date: Wed, 26 Aug 2009 14:25:55 +0000 Subject: [PATCH] J : * Fix the mana consume event so as to consume the right number of manas --- projects/mtg/src/GuiMana.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/mtg/src/GuiMana.cpp b/projects/mtg/src/GuiMana.cpp index 7728a0d7e..c84bc244b 100644 --- a/projects/mtg/src/GuiMana.cpp +++ b/projects/mtg/src/GuiMana.cpp @@ -159,7 +159,7 @@ int GuiMana::receiveEventMinus(WEvent* e) if (WEventConsumeMana *event = dynamic_cast(e)) { for (vector::iterator it = manas.begin(); it != manas.end(); ++it) - if (event->color == (*it)->color) { (*it)->Wither(); return 1; } + if ((event->color == (*it)->color) && (ManaIcon::ALIVE == (*it)->mode)) { (*it)->Wither(); return 1; } return 1; } else if (WEventPhaseChange *event = dynamic_cast(e))