mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-10 22:21:30 +00:00
fix(Core/Spells): Beacon of Light should not cause combat. (#7321)
* fix(Core/Spells): Beacon of Light should not cause combat. Fixed #7276
This commit is contained in:
@@ -2667,8 +2667,11 @@ void Spell::DoAllEffectOnTarget(TargetInfo* target)
|
||||
}
|
||||
}
|
||||
|
||||
if (missInfo != SPELL_MISS_EVADE && effectUnit != m_caster && m_caster->IsFriendlyTo(effectUnit) && m_spellInfo->IsPositive() && effectUnit->IsInCombat())
|
||||
if (missInfo != SPELL_MISS_EVADE && effectUnit != m_caster && m_caster->IsFriendlyTo(effectUnit) && m_spellInfo->IsPositive() &&
|
||||
effectUnit->IsInCombat() && !m_spellInfo->HasAttribute(SPELL_ATTR1_NO_THREAT))
|
||||
{
|
||||
m_caster->SetInCombatWith(effectUnit);
|
||||
}
|
||||
|
||||
// Check for SPELL_ATTR7_CAN_CAUSE_INTERRUPT
|
||||
if (m_spellInfo->HasAttribute(SPELL_ATTR7_CAN_CAUSE_INTERRUPT) && effectUnit->GetTypeId() != TYPEID_PLAYER)
|
||||
|
||||
Reference in New Issue
Block a user