X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2Fstates%2FPerformAttacks.cpp;h=2a8f3a53b697a4aecb3e5270c4e7c65d4be69ff9;hb=c0068263474818f39e704eee12f753c0419f7708;hp=498014a551d68b8fd81494989a8de44cc558a350;hpb=00b557a47e47d9410730d47d436f6158a3fb79f5;p=l2e.git diff --git a/src/battle/states/PerformAttacks.cpp b/src/battle/states/PerformAttacks.cpp index 498014a..2a8f3a5 100644 --- a/src/battle/states/PerformAttacks.cpp +++ b/src/battle/states/PerformAttacks.cpp @@ -79,11 +79,12 @@ void PerformAttacks::HandleEvents(const Input &input) { case AttackChoice::SWORD: if (hero.HasWeapon()) { titleBarText = hero.Weapon()->Name(); + targetAnimation = hero.Weapon()->AttackAnimation(); } else { titleBarText = "Melee attack!"; + targetAnimation = hero.MeleeAnimation(); } moveAnimation = hero.AttackAnimation(); - targetAnimation = hero.MeleeAnimation(); numberAnimation.push_back(NumberAnimation(15, battle->Res().numberAnimationPrototype, battle->Res().bigNumberSprite)); if (ac.Selection().TargetsEnemies()) {