]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/BattleState.cpp
added melee animation of monsters
[l2e.git] / src / battle / BattleState.cpp
index d0bb108da3a65256ce0b9846a8eb6557cc663364..95f2f118d9e618f45b928180bad1698240b0969d 100644 (file)
@@ -390,6 +390,14 @@ void BattleState::ApplyDamage() {
        }
 }
 
+AttackChoice &BattleState::CurrentAttackAttackChoice() {
+       if (CurrentAttack().isMonster) {
+               return monsterAttacks[CurrentAttack().index];
+       } else {
+               return AttackChoiceAt(CurrentAttack().index);
+       }
+}
+
 void BattleState::ClearAllAttacks() {
        attackCursor = -1;
        activeHero = -1;