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