From 004af40cc042104b935e6bd0f337e6b99588e353 Mon Sep 17 00:00:00 2001 From: UltraNix <80540499+UltraNix@users.noreply.github.com> Date: Sat, 14 Aug 2021 13:51:26 +0200 Subject: [PATCH] fix(Core): do not start combat with pet's current victim on spell hit if it's not in combat (#7293) - Closes #7247 --- src/server/game/Spells/Spell.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index 4746d07d9..aee31ebb7 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -2786,10 +2786,7 @@ SpellMissInfo Spell::DoSpellHitOnUnit(Unit* unit, uint32 effectMask, bool scaleA // xinef: triggered spells should not prolong combat if (unit->IsInCombat() && !m_spellInfo->HasAttribute(SPELL_ATTR3_SUPRESS_TARGET_PROCS) && !m_triggeredByAuraSpell) { - // xinef: start combat with hostile unit... - if (Unit* hostile = unit->getAttackerForHelper()) - m_caster->CombatStart(hostile, true); - //m_caster->SetInCombatState(unit->GetCombatTimer() > 0, unit); + m_caster->SetInCombatState(unit->GetCombatTimer() > 0, unit); unit->getHostileRefManager().threatAssist(m_caster, 0.0f); } }