Bug Fixes, code cleanup, macros substitutions for tokens
Adding colorless to a token is redundant since by default is colorless. "may pay" is redundant when the cost is mana, it's necessary when the cost is life. Acolyte of Affliction Ajani, Strength Of The Pride Shouldn't Be Double Triggers Akiri, Fearless Voyager Arena Rector Arrogant Poet Artificer's Hex just falls off, removed Body Snatcher When You Have No Creatures In Hand Bump In The Night Cacophony Scamp Captain Eberhart Chandra, Hope's Beacon Deem Worthy Desecrate Reality Destructive Tampering Drake Haven Dredge The Mire Explosive Welcome Fungal Rebirth Giver of Runes Glissa's Scorn Gurgling Anointer Haunted Angel Hungry Flames Hypnotic Cloud Inniaz, the Gale Force Jukai Naturalist Lord Windgrace Nature's Cloak Nature's Spiral Rashmi, Eternities Crafter Rohgahh, Kher Keep Overlord So Shiny Sparktongue Dragon Sprouting Goblin missing a ) Temple Thief The Grey Havens The Mending of Dominaria was shuffling itself Tolarian Contempt, have to misspell "rejection" on the counter name Two-Handed Axe // Sweeping Cleave Urborg Panther Urza's Sylex Victory Chimes Vraska, Swarm's Eminence Warmonger
This commit is contained in:
@@ -434,6 +434,7 @@ Player * Rules::loadPlayerRandomCommander(GameObserver* observer, int isAI)
|
||||
cmdTempDeck->addRandomCards(1, 0, 0, -1, "legendary");
|
||||
myCommandZone = NEW DeckDataWrapper(cmdTempDeck);
|
||||
commander = myCommandZone->getCard(0, true);
|
||||
delete myCommandZone; // Clean up to avoid memory leaks
|
||||
}
|
||||
|
||||
stringstream cid;
|
||||
@@ -452,11 +453,10 @@ Player * Rules::loadPlayerRandomCommander(GameObserver* observer, int isAI)
|
||||
|
||||
if(colors.data()[0] != 0) { colors.insert(colors.begin(),0); }
|
||||
|
||||
// Add basic lands
|
||||
int numLands = 40;
|
||||
// Add lands
|
||||
int numLands = colors.size() > 1 ? 40 / (colors.size() - 1) : 40;
|
||||
if(colors.size() > 1)
|
||||
{
|
||||
numLands /= colors.size() - 1;
|
||||
for (unsigned int i = 1; i < colors.size(); i++)
|
||||
{
|
||||
tempDeck->addRandomCards(numLands, 0, 0, -1, lands[colors.data()[i]].c_str());
|
||||
|
||||
Reference in New Issue
Block a user