Fixed Legend rule for mutating cards, avoided spell targeting for mutated down cards, added new primitives.

This commit is contained in:
valfieri
2020-06-14 14:03:00 +02:00
parent 2b398b425d
commit 587155353c
6 changed files with 128 additions and 76 deletions

View File

@@ -928,7 +928,7 @@ int MTGCardInstance::countDuplicateCardNames()
int nb_cards = controller()->game->battlefield->nb_cards;
for(int x = 0; x < nb_cards; x++)
{
if(controller()->game->battlefield->cards[x]->name == this->name)
if(controller()->game->battlefield->cards[x]->name == this->name && !(controller()->game->battlefield->cards[x]->mutation && controller()->game->battlefield->cards[x]->parentCards.size() > 0)) // Don't count Mutated down card
count+=1;
}
}