Bug fixes, Changes to Random Commander

You can now get non-basic lands in random commander, adds more diversity to the mode.
Bug fixes to "Choose one or both" cards
Helm of Kaldra AI just keeps activating the ability
Katsumasa, the Animator
Yidris, Maelstrom Wielder
Prismatic Omen
Retreat to Hagra
Condescend
Unnatural Aggression
Second Breakfast
Kitesail Skirmisher
Ezuri's Predation
Rohgahh, Kher Keep Overlord
Blight-Breath Catoblepas
This commit is contained in:
Eduardo MG
2024-02-09 20:04:12 -06:00
parent 30bef9f840
commit 667adfadce
4 changed files with 66 additions and 93 deletions

View File

@@ -2104,7 +2104,7 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
observer->addObserver(NEW MTGTempFlashBackRule(observer, -1));
return NULL;
}
//alternative cost type flashback
//alternative cost type bestow
found = s.find("bestowrule");
if (found != string::npos)
{

View File

@@ -459,7 +459,7 @@ Player * Rules::loadPlayerRandomCommander(GameObserver* observer, int isAI)
numLands /= colors.size() - 1;
for (unsigned int i = 1; i < colors.size(); i++)
{
tempDeck->addRandomCards(numLands, 0, 0, Constants::RARITY_L, lands[colors.data()[i]].c_str());
tempDeck->addRandomCards(numLands, 0, 0, -1, lands[colors.data()[i]].c_str());
}
}
else { tempDeck->addRandomCards(numLands, 0, 0, Constants::RARITY_L); }