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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user