X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FBattleState.cpp;h=95f2f118d9e618f45b928180bad1698240b0969d;hb=d4609ba1798d82cce128b5985d60cb212b760246;hp=d0bb108da3a65256ce0b9846a8eb6557cc663364;hpb=7263bddbde91d555decd58f043f6b43f54ba2b00;p=l2e.git diff --git a/src/battle/BattleState.cpp b/src/battle/BattleState.cpp index d0bb108..95f2f11 100644 --- a/src/battle/BattleState.cpp +++ b/src/battle/BattleState.cpp @@ -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;