-added "this" as valid target (still needs some work)  see cathodion
- Added mythic rares in boosters
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-07-20 03:35:26 +00:00
parent 8d62b9288c
commit a376e8110b
8 changed files with 66 additions and 19 deletions
+4 -1
View File
@@ -465,7 +465,10 @@ int MTGDeck::addRandomCards(int howmany, int setId, int rarity, const char * _su
}
}
}
if (subtotal == 0) return 0;
if (subtotal == 0){
if (rarity == Constants::RARITY_M) return addRandomCards(howmany, setId, Constants::RARITY_R, _subtype, colors, nbcolors);
return 0;
}
for (int i = 0; i < howmany; i++){
int id = (rand() % subtotal);
add(subcollection[id]);