- fix issue 168 (kudzu)
- Fix issue 162 (copy VS shroud). This fix introduces a new keyword: NotATarget() instead of Target(). (Which was the best way for me to keep some kind of backward compatibility/ not alter the code too much / fix the bug)
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-12-13 07:03:28 +00:00
parent 999256e6ab
commit a7493154fa
12 changed files with 52 additions and 39 deletions

View File

@@ -231,6 +231,7 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
string starget = s.substr(found + 7,end - found - 7);
TargetChooserFactory tcf;
tc = tcf.createTargetChooser(starget, card);
if (tc && s.find("notatarget(") != string::npos) tc->targetter = NULL;
}
AEquip *ae = dynamic_cast<AEquip*>(a);
@@ -273,6 +274,7 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
string starget = s.substr(found + 7,end - found - 7);
TargetChooserFactory tcf;
tc = tcf.createTargetChooser(starget, card);
if (tc && s.find("notatarget(") != string::npos) tc->targetter = NULL;
}
if (tc) a1 = NEW GenericTargetAbility(id, card, tc, a1);
else a1 = NEW GenericActivatedAbility(id, card, a1,NULL);