X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2Fstates%2FSelectAttackType.cpp;h=5e687b670622ec25f4b870cacfe00fa15a34e3cb;hb=b782e097508340f375a06f0f293775eb86c3df9c;hp=7dd06f6217b8e610f49828b891994b020ef20c1d;hpb=185c6c79f8ba30981aad4e1d66f98143a344b95e;p=l2e.git diff --git a/src/battle/states/SelectAttackType.cpp b/src/battle/states/SelectAttackType.cpp index 7dd06f6..5e687b6 100644 --- a/src/battle/states/SelectAttackType.cpp +++ b/src/battle/states/SelectAttackType.cpp @@ -7,6 +7,8 @@ #include "SelectAttackType.h" +#include "SelectIkari.h" +#include "SelectItem.h" #include "SelectMoveAction.h" #include "SelectSpell.h" #include "../AttackChoice.h" @@ -78,12 +80,10 @@ void SelectAttackType::HandleInput(const Input &input) { battle->NextHero(); break; case AttackChoice::IKARI: - // TODO: switch to ikari attack select - battle->NextHero(); + ctrl->PushState(new SelectIkari(battle, this)); break; case AttackChoice::ITEM: - // TODO: switch to item select - battle->NextHero(); + ctrl->PushState(new SelectItem(battle, this)); break; default: throw std::logic_error("selected invalid attack type");