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