From 11473e0fb5e542ad7211ced30445da95de881b42 Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Tue, 26 Jul 2011 16:39:12 +0000 Subject: [PATCH] added "while" tag to this's i added it to lords a while ago to fix a similar issue where the lords were taking on the "oneshot" variable of their abilities in cases where you really didn't want them too... its basically an over ride.... --- projects/mtg/src/MTGAbility.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/mtg/src/MTGAbility.cpp b/projects/mtg/src/MTGAbility.cpp index c8665e4bf..1adb7207b 100644 --- a/projects/mtg/src/MTGAbility.cpp +++ b/projects/mtg/src/MTGAbility.cpp @@ -1138,6 +1138,9 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG { oneShot = true; } + found = s.find("while "); + if (found != string::npos) + oneShot = false; Damageable * _target = NULL; if (spell)