-fix for issue 120
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-11-03 10:12:01 +00:00
parent a7034bbcb4
commit d2bcb90799
3 changed files with 30 additions and 0 deletions
+5
View File
@@ -401,6 +401,11 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
if (found != string::npos){
int end = s.find(")",found+1);
string szone = s.substr(found + 7,end - found - 7);
//hack for http://code.google.com/p/wagic/issues/detail?id=120
//We assume that auras don't move their own target...
if (card->hasType("aura")) target = card;
MTGAbility * a = NEW AAMover(id,card,target,szone);
a->oneShot = 1;
return a;