- if (battle->CurrentAttack().IsMonster()) {
- battle->MonsterAt(battle->CurrentAttack().index).SetAnimation(moveAnimation);
- } else if (battle->CurrentAttack().IsHero()) {
- battle->HeroAt(battle->CurrentAttack().index).SetAnimation(moveAnimation);
+ if (attack.IsMonster()) {
+ battle->MonsterAt(attack.index).SetAnimation(moveAnimation);
+ } else if (attack.IsHero()) {
+ battle->HeroAt(attack.index).SetAnimation(moveAnimation);