]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/states/PerformAttacks.cpp
removed redundant BattleState::MonsterAttackChoiceAt(int)
[l2e.git] / src / battle / states / PerformAttacks.cpp
index 0faecf9b5ead48f334e663c0817cb185abb1311f..78e197077724629db3b4bca5c5f64d09a39ff9c4 100644 (file)
@@ -77,7 +77,7 @@ void PerformAttacks::HandleEvents(const Input &input) {
                targetAnimation = AnimationRunner(monster.MeleeAnimation());
                moveAnimation = AnimationRunner(monster.AttackAnimation());
                monster.SetAnimation(moveAnimation);
-               AddNumberAnimations(battle->MonsterAttackChoiceAt(battle->CurrentAttack().index).Selection());
+               AddNumberAnimations(battle->MonsterAt(battle->CurrentAttack().index).GetAttackChoice().Selection());
        } else {
                Hero &hero(battle->HeroAt(battle->CurrentAttack().index));
                const AttackChoice &ac(battle->HeroAt(battle->CurrentAttack().index).GetAttackChoice());