AddNumberAnimations(battle->MonsterAttackChoiceAt(battle->CurrentAttack().index).Selection());
} else {
Hero &hero(battle->HeroAt(battle->CurrentAttack().index));
- const AttackChoice &ac(battle->AttackChoiceAt(battle->CurrentAttack().index));
+ const AttackChoice &ac(battle->HeroAt(battle->CurrentAttack().index).GetAttackChoice());
switch (ac.GetType()) {
case AttackChoice::SWORD:
moveAnimation.Clear();
break;
}
- hero.SetAnimation(moveAnimation);
}
if (titleBarText) titleBarTimer = GraphicsTimers().StartCountdown(850);
- if (moveAnimation.Valid()) moveAnimation.Start(*this);
+ if (moveAnimation.Valid()) {
+ moveAnimation.Start(*this);
+ if (battle->CurrentAttack().isMonster) {
+ battle->MonsterAt(battle->CurrentAttack().index).SetAnimation(moveAnimation);
+ } else {
+ battle->HeroAt(battle->CurrentAttack().index).SetAnimation(moveAnimation);
+ }
+ }
if (targetAnimation.Valid()) {
targetAnimationTimer = GraphicsTimers().StartCountdown(150);
} else {