X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2Fstates%2FSelectSpell.cpp;h=db5bb45981c723727758a85968c9f8cfe947c01d;hb=536a8c96ebfec2a2b34f680d3d0b97db8e66d599;hp=f50e05947a2b819d2085c5eda80363da68b65f85;hpb=25d7499f7923291d7287123320e7563a367e92e7;p=l2e.git diff --git a/src/battle/states/SelectSpell.cpp b/src/battle/states/SelectSpell.cpp index f50e059..db5bb45 100644 --- a/src/battle/states/SelectSpell.cpp +++ b/src/battle/states/SelectSpell.cpp @@ -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(); }