Bug Fix
Fix send to library as a cost and add support for moving a card to graveyard as a cost(cards like Void Attendant from Battle for Zendikar)
This commit is contained in:
@@ -139,10 +139,14 @@ ManaCost * ManaCost::parseManaCost(string s, ManaCost * _manaCost, MTGCardInstan
|
||||
}
|
||||
break;
|
||||
case 's':
|
||||
if (value == "s2l")
|
||||
if (value.find("s2l") != string::npos)
|
||||
{ //Send To Library Cost (move from anywhere to Library)
|
||||
manaCost->addExtraCost(NEW ToLibraryCost(tc));
|
||||
}
|
||||
else if (value.find("s2g") != string::npos)
|
||||
{ //Send to Graveyard Cost (move from anywhere to Graveyard)
|
||||
manaCost->addExtraCost(NEW ToGraveCost(tc));
|
||||
}
|
||||
else
|
||||
{ //Sacrifice
|
||||
manaCost->addExtraCost(NEW SacrificeCost(tc));
|
||||
|
||||
Reference in New Issue
Block a user