Skip to content

Commit

Permalink
ZG: Add threat reset to normal charge
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Dec 30, 2023
1 parent 33760d2 commit a07ba36
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ struct boss_mandokirAI : public CombatAI
m_creature->CastSpell(nullptr, SPELL_DESPAWN_CHAINED_SPIRITS, TRIGGERED_OLD_TRIGGERED);
}

void SpellHitTarget(Unit* /*target*/, const SpellEntry* spellInfo) override
{
if (spellInfo->Id == SPELL_CHARGE)
DoResetThreat();
}

void ReceiveAIEvent(AIEventType eventType, Unit* /*sender*/, Unit* invoker, uint32 /*miscValue*/) override
{
if (eventType == AI_EVENT_CUSTOM_A)
Expand Down

0 comments on commit a07ba36

Please sign in to comment.