X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbattle%2Fstates%2FPerformAttacks.cpp;fp=src%2Fbattle%2Fstates%2FPerformAttacks.cpp;h=05227e6e4065f512aef1af9bb7cabfd053076bb2;hb=56f6bddd8f4616c8c5ea564f60c5a3dbc7dafd82;hp=15c4feba5ab0633cd0acf638ebc1aa0ea2b28d3e;hpb=7cabfe225d70f2a7c0770fde3091e744fc0e4dd2;p=l2e.git diff --git a/src/battle/states/PerformAttacks.cpp b/src/battle/states/PerformAttacks.cpp index 15c4feb..05227e6 100644 --- a/src/battle/states/PerformAttacks.cpp +++ b/src/battle/states/PerformAttacks.cpp @@ -121,11 +121,17 @@ void PerformAttacks::HandleEvents(const Input &input) { 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 {