158 {
161
162 if (caster && target)
163 {
166
168 {
169 creatureCaster->GetThreatMgr().ResetAllThreat();
170 creatureCaster->GetThreatMgr().AddThreat(target, 1);
171 creatureCaster->AI()->AttackStart(target);
172 }
173 }
174 }
@ SPELL_ARCANE_EXPLOSION
Definition: boss_shazzrah.cpp:27
@ SPELL_SHAZZRAH_GATE
Definition: boss_shazzrah.cpp:32
Definition: Creature.h:43
Creature * ToCreature()
Definition: Object.h:205
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1167
Unit * GetHitUnit()
Definition: SpellScript.cpp:448