]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/states/SelectItem.cpp
postponed attack type decision to their respective states
[l2e.git] / src / battle / states / SelectItem.cpp
index 0bdd4b10c3adfba9fe4216e5a8b9e6cc1d582628..4f6c7af1eb049b4b6d0492132a823a4f0b0a22e4 100644 (file)
@@ -49,6 +49,7 @@ void SelectItem::HandleInput(const Input &input) {
        if (input.JustPressed(Input::ACTION_A)) {
                // TODO: switch to target select
                if (battle->GetItemMenu().SelectedIsEnabled()) {
+                       battle->SetAttackType(AttackChoice::ITEM);
                        battle->NextHero();
                        ctrl->PopState();
                }