1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-13 01:20:34 +02:00
This commit is contained in:
AlexVinS
2017-10-08 00:04:43 +03:00
parent 891eb5771a
commit fc1938c341

View File

@ -1416,10 +1416,16 @@ CBattleInterface::PossibleActions CBattleInterface::getCasterAction(const CSpell
void CBattleInterface::setHeroAnimation(ui8 side, int phase) void CBattleInterface::setHeroAnimation(ui8 side, int phase)
{ {
if(side == BattleSide::ATTACKER) if(side == BattleSide::ATTACKER)
{
if(attackingHero)
attackingHero->setPhase(phase); attackingHero->setPhase(phase);
}
else else
{
if(defendingHero)
defendingHero->setPhase(phase); defendingHero->setPhase(phase);
} }
}
void CBattleInterface::castThisSpell(SpellID spellID) void CBattleInterface::castThisSpell(SpellID spellID)
{ {