1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

Fix special colors in battle

This commit is contained in:
Ivan Savenko 2023-03-26 00:46:21 +02:00
parent 4c311da21b
commit da3a05bc8b

View File

@ -346,8 +346,8 @@ void CreatureAnimation::genSpecialPalette(IImage::SpecialPalette & target)
target.resize(8);
target[0] = genShadow(0);
target[1] = genShadow(shadowAlpha / 2);
target[2] = genShadow(shadowAlpha / 2);
// colors 2 & 3 are not used in creatures
target[4] = genShadow(shadowAlpha);
target[5] = genBorderColor(getBorderStrength(elapsedTime), border);
target[6] = addColors(genShadow(shadowAlpha), genBorderColor(getBorderStrength(elapsedTime), border));
target[7] = addColors(genShadow(shadowAlpha / 2), genBorderColor(getBorderStrength(elapsedTime), border));