diff --git a/Adventures in Lestoria/AdventuresInLestoria.cpp b/Adventures in Lestoria/AdventuresInLestoria.cpp index 47b505df..bbd4ba55 100644 --- a/Adventures in Lestoria/AdventuresInLestoria.cpp +++ b/Adventures in Lestoria/AdventuresInLestoria.cpp @@ -2435,6 +2435,7 @@ void AiL::_PrepareLevel(MapName map,MusicChange changeMusic){ GetPlayer()->SetInvisible(false); GetPlayer()->ResetVelocity(); GetPlayer()->RemoveAllBuffs(); + GetPlayer()->ResetTimers(); STEAMINPUT( //This is kind of a hack to refresh the in-game controls handle and button icons if for some reason it's not setup correctly. Input::LoadSteamButtonIcons(); diff --git a/Adventures in Lestoria/Player.cpp b/Adventures in Lestoria/Player.cpp index a19a248b..ec597874 100644 --- a/Adventures in Lestoria/Player.cpp +++ b/Adventures in Lestoria/Player.cpp @@ -116,6 +116,10 @@ void Player::Initialize(){ SetBaseStat("Attack Spd",0); cooldownSoundInstance=Audio::Engine().LoadSound("spell_cast.ogg"_SFX); afterImage.Create(24,24); + for(Pixel&p:afterImage.Sprite()->pColData){ + p.a=0; + } + afterImage.Decal()->Update(); } void Player::InitializeMinimapImage(){ @@ -2066,4 +2070,8 @@ void Player::RunTimers(){ for(auto&[type,timer]:timers){ timer.Update(game->GetElapsedTime()); } +} + +void Player::ResetTimers(){ + timers.clear(); } \ No newline at end of file diff --git a/Adventures in Lestoria/Player.h b/Adventures in Lestoria/Player.h index 84ccd3de..6bd63307 100644 --- a/Adventures in Lestoria/Player.h +++ b/Adventures in Lestoria/Player.h @@ -317,6 +317,7 @@ public: Timer&AddTimer(const TimerType type,const Timer&timer); Timer&GetTimer(const TimerType type); void CancelTimer(const TimerType type); + void ResetTimers(); private: int hp="Warrior.BaseHealth"_I; int mana="Player.BaseMana"_I; diff --git a/Adventures in Lestoria/Version.h b/Adventures in Lestoria/Version.h index f58cbb5c..9cfcec20 100644 --- a/Adventures in Lestoria/Version.h +++ b/Adventures in Lestoria/Version.h @@ -39,7 +39,7 @@ All rights reserved. #define VERSION_MAJOR 1 #define VERSION_MINOR 2 #define VERSION_PATCH 3 -#define VERSION_BUILD 10969 +#define VERSION_BUILD 10971 #define stringify(a) stringify_(a) #define stringify_(a) #a diff --git a/x64/Release/Adventures in Lestoria.exe b/x64/Release/Adventures in Lestoria.exe index dd378088..134f20d7 100644 Binary files a/x64/Release/Adventures in Lestoria.exe and b/x64/Release/Adventures in Lestoria.exe differ