diff --git a/L2BotCore/Domain/Entities/Hero.h b/L2BotCore/Domain/Entities/Hero.h index ecd2d5e..60ca22b 100644 --- a/L2BotCore/Domain/Entities/Hero.h +++ b/L2BotCore/Domain/Entities/Hero.h @@ -89,6 +89,10 @@ namespace L2Bot::Domain::Entities { return m_AttackerIds; } + void ClearAttackers() + { + m_AttackerIds.clear(); + } const std::vector BuildSerializationNodes() const override { diff --git a/L2BotDll/Versions/Interlude/Repositories/HeroRepository.h b/L2BotDll/Versions/Interlude/Repositories/HeroRepository.h index 1a1858e..cb0b2e3 100644 --- a/L2BotDll/Versions/Interlude/Repositories/HeroRepository.h +++ b/L2BotDll/Versions/Interlude/Repositories/HeroRepository.h @@ -82,6 +82,7 @@ namespace Interlude if (m_Hero->GetId() == casted.GetCreatureId()) { Services::ServiceLocator::GetInstance().GetLogger()->App(L"{} died", m_Hero->GetFullName().GetNickname()); + m_Hero->ClearAttackers(); } else {