Draft of new feature: canplayfromgraveyard

this will allow playing cards from graveyard
examples: tbd
This commit is contained in:
Dmitry Panin
2013-12-02 04:20:04 +04:00
parent f08ddac77b
commit ae927576c5
6 changed files with 69 additions and 2 deletions

View File

@@ -1039,6 +1039,12 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
observer->addObserver(NEW MTGMorphCostRule(observer, -1));
return NULL;
}
found = s.find("playfromgraveyardrule");
if(found != string::npos)
{
observer->addObserver(NEW MTGPlayFromGraveyardRule(observer, -1));
return NULL;
}
//this rule handles attacking ability during attacker phase
found = s.find("attackrule");
if(found != string::npos)