diff --git a/src/game/AI/TotemAI.cpp b/src/game/AI/TotemAI.cpp index c2af1421e0a..27bdf7277fa 100644 --- a/src/game/AI/TotemAI.cpp +++ b/src/game/AI/TotemAI.cpp @@ -99,7 +99,8 @@ void TotemAI::UpdateAI(uint32 const /*diff*/) Cell::VisitAllObjects(m_creature, checker, max_range); } - if (victim) + if (victim && + victim->IsInCombat()) { m_victimGuid = victim->GetObjectGuid(); @@ -108,4 +109,4 @@ void TotemAI::UpdateAI(uint32 const /*diff*/) } else m_victimGuid.Clear(); -} \ No newline at end of file +}