Fixed a bug on deck choosing menu when an AI deck has no avatar image (it will be used "baka.jpg"), added new default avatar images for AI decks (up to 200), fixed "_PROLIFERATE_" macro and fixed all primitives with "proliferate" ability, improved the "proliferation" keyword for target chooser in order to avoid targeting permanents or players without counters and/or with some protections (e.g. hexproof, shroud and similar).

This commit is contained in:
Vittorio Alfieri
2021-10-08 23:01:37 +02:00
parent aafaadb76f
commit fd76775923
107 changed files with 44 additions and 9 deletions

View File

@@ -49,7 +49,11 @@ DeckMenuItem::DeckMenuItem(DeckMenu* _parent, int id, int fontId, string text, f
}
if (mMetaData && mMetaData->getAvatarFilename().size() > 0)
{
mImageFilename = mMetaData->getAvatarFilename();
if(!(WResourceManager::Instance()->RetrieveTexture(mImageFilename)))
mImageFilename = "baka.jpg"; // if the AI deck has no specific avatar we will display the default "baka.jpg" image.
}
else
{
// this is a non-deck menu item (ie "Random", "Cancel", etc