fix(Scripts/ZulGurub): Threat caused by SPELL_AURA_DAMAGE_SHIELD au… (#12398)

...ras should not count to Threating Gaze Charge mechanic.

Fixes #12379
This commit is contained in:
UltraNix
2022-07-19 16:59:02 +02:00
committed by GitHub
parent 2d6679d1e5
commit 700dfde2af

View File

@@ -286,7 +286,7 @@ public:
if (_chargeTarget.first == hatedUnit->GetGUID())
{
// Do not count DOTs/HOTs
if (!threatSpell || !threatSpell->HasAttribute(SPELL_ATTR0_CU_NO_INITIAL_THREAT))
if (!(threatSpell && (threatSpell->HasAura(SPELL_AURA_DAMAGE_SHIELD) || threatSpell->HasAttribute(SPELL_ATTR0_CU_NO_INITIAL_THREAT))))
{
_chargeTarget.second += threat;
}