1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Initialize the change:

1. Make color shifter for CAnimation, and use that in the clone effect.
2. Update the original position of the cloned object.
This commit is contained in:
toneyisnow
2020-01-25 01:21:26 -08:00
parent 8341ba3c27
commit 0f3dabab9a
9 changed files with 142 additions and 1 deletions

View File

@@ -739,6 +739,10 @@ void CPlayerInterface::battleUnitsChanged(const std::vector<UnitChanges> & units
if(unit->alive() && animation->isDead())
animation->setType(CCreatureAnim::HOLDING);
if (unit->isClone())
{
animation->shiftColor(ColorShifterDeepBlue::create());
}
//TODO: handle more cases
}
break;