From 179b7deeb87eeba99d840e41e74213d11d9d321a Mon Sep 17 00:00:00 2001 From: "wagic.the.homebrew" Date: Mon, 1 Dec 2008 07:13:33 +0000 Subject: [PATCH] Erwan - fixed a bug with Damage parsing in _cards.dat (should fix damages for Lava axe) --- projects/mtg/src/MTGAbility.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/mtg/src/MTGAbility.cpp b/projects/mtg/src/MTGAbility.cpp index 6736c6e23..d4db8310c 100644 --- a/projects/mtg/src/MTGAbility.cpp +++ b/projects/mtg/src/MTGAbility.cpp @@ -282,6 +282,7 @@ int AbilityFactory::magicText(int id, Spell * spell, MTGCardInstance * card){ found = s.find("damage"); if (found != string::npos){ unsigned int start = s.find(":",found); + if (start == string::npos) start = s.find(" ",found); unsigned int end = s.find(" ",start); int damage; ManaCost * cost = ManaCost::parseManaCost(s);