mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 10:30:27 +00:00
fix(Core/Spells): Azuregos teleport should only drop threat for hit units (#10722)
This commit is contained in:
@@ -117,7 +117,6 @@ public:
|
||||
{
|
||||
Talk(SAY_TELEPORT);
|
||||
DoCastAOE(SPELL_ARCANE_VACUUM);
|
||||
DoResetThreat();
|
||||
context.Repeat(30s);
|
||||
})
|
||||
.Schedule(15s, 30s, [this](TaskContext context)
|
||||
@@ -192,6 +191,7 @@ class spell_arcane_vacuum : public SpellScript
|
||||
Unit* hitUnit = GetHitUnit();
|
||||
if (caster && hitUnit && hitUnit->ToPlayer())
|
||||
{
|
||||
caster->getThreatMgr().modifyThreatPercent(hitUnit, -100);
|
||||
caster->CastSpell(hitUnit, SPELL_ARCANE_VACUUM_TP, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user