fix: fix attackers removing

This commit is contained in:
Иванов Иван 2024-08-12 18:11:02 +02:00
parent b7d8dd1db0
commit c3f6d10dc6

View File

@ -104,7 +104,7 @@ namespace Interlude
{ {
m_Hero->AddAttacker(casted.GetAttackerId()); m_Hero->AddAttacker(casted.GetAttackerId());
} }
else else if (casted.GetAttackerId() != casted.GetTargetId())
{ {
// try to remove creature that is attacking another target from the attackers // try to remove creature that is attacking another target from the attackers
m_Hero->RemoveAttacker(casted.GetAttackerId()); m_Hero->RemoveAttacker(casted.GetAttackerId());