add saclands cost

sacrifice all lands {saclands} cost
This commit is contained in:
Anthony Calosa
2017-02-19 22:11:16 +08:00
parent 5b16ff4a69
commit e6bf23e536
3 changed files with 50 additions and 0 deletions
+4
View File
@@ -147,6 +147,10 @@ ManaCost * ManaCost::parseManaCost(string s, ManaCost * _manaCost, MTGCardInstan
{ //Send to Graveyard Cost (move from anywhere to Graveyard)
manaCost->addExtraCost(NEW ToGraveCost(tc));
}
else if (value.find("saclands") != string::npos)
{ //Sac all lands
manaCost->addExtraCost(NEW SacLandsCost(tc));
}
else
{ //Sacrifice
manaCost->addExtraCost(NEW SacrificeCost(tc));