mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
fix(Core): do not start combat with pet's current victim on spell hit if it's not in combat (#7293)
- Closes #7247
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user