feat: clear all attackers when hero died
This commit is contained in:
parent
c61019961b
commit
75a5b842f7
@ -89,6 +89,10 @@ namespace L2Bot::Domain::Entities
|
|||||||
{
|
{
|
||||||
return m_AttackerIds;
|
return m_AttackerIds;
|
||||||
}
|
}
|
||||||
|
void ClearAttackers()
|
||||||
|
{
|
||||||
|
m_AttackerIds.clear();
|
||||||
|
}
|
||||||
|
|
||||||
const std::vector<Serializers::Node> BuildSerializationNodes() const override
|
const std::vector<Serializers::Node> BuildSerializationNodes() const override
|
||||||
{
|
{
|
||||||
|
@ -82,6 +82,7 @@ namespace Interlude
|
|||||||
if (m_Hero->GetId() == casted.GetCreatureId())
|
if (m_Hero->GetId() == casted.GetCreatureId())
|
||||||
{
|
{
|
||||||
Services::ServiceLocator::GetInstance().GetLogger()->App(L"{} died", m_Hero->GetFullName().GetNickname());
|
Services::ServiceLocator::GetInstance().GetLogger()->App(L"{} died", m_Hero->GetFullName().GetNickname());
|
||||||
|
m_Hero->ClearAttackers();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user