-fix issue 79 (AI and legendary cards)
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-09-28 15:18:54 +00:00
parent 5b9fe719ae
commit 3f2bf948eb
4 changed files with 46 additions and 31 deletions
+9
View File
@@ -232,6 +232,15 @@ int MTGGameZone::countByType(const char * value){
}
MTGCardInstance * MTGGameZone::findByName(string name){
for (int i=0; i<(nb_cards); i++) {
if (cards[i]->name == name){
return cards[i];
}
}
return NULL;
}
int MTGGameZone::hasType(const char * value){
for (int i=0; i<(nb_cards); i++) {
if (cards[i]->hasType(value)){