X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2Fstates%2FPerformAttacks.cpp;h=8550318d05cf83942cafb5619ea2a647869a98ce;hb=7263bddbde91d555decd58f043f6b43f54ba2b00;hp=86d7a7c69e35564fa9324192dff88530acc4f4c2;hpb=69ed4a9c725c438079ceeed89d49656d808308ce;p=l2e.git diff --git a/src/battle/states/PerformAttacks.cpp b/src/battle/states/PerformAttacks.cpp index 86d7a7c..8550318 100644 --- a/src/battle/states/PerformAttacks.cpp +++ b/src/battle/states/PerformAttacks.cpp @@ -39,6 +39,7 @@ void PerformAttacks::EnterState(Application &c, SDL_Surface *screen) { } void PerformAttacks::ExitState(Application &c, SDL_Surface *screen) { + battle->ClearAllAttacks(); ctrl = 0; } @@ -63,7 +64,6 @@ void PerformAttacks::HandleEvents(const Input &input) { battle->ApplyDamage(); battle->NextAttack(); if (battle->AttacksFinished()) { - battle->ClearAllAttacks(); ctrl->PopState(); return; }