Skip to content

Commit a3eb8de

Browse files
committed
prepare merge
1 parent 70698c6 commit a3eb8de

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

File renamed without changes.

src/server/scripts/Outland/HellfireCitadel/ShatteredHalls/boss_warbringer_omrogg.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -439,14 +439,14 @@ class spell_omrogg_beatdown : public SpellScript
439439

440440
void HandleAfterCast()
441441
{
442-
if (Creature* creature = GetCaster()->ToCreature())
443-
{
444-
creature->GetThreatManager().ResetAllThreat();
442+
Unit* caster = GetCaster();
443+
if (!caster->IsCreature())
444+
return;
445445

446-
if (creature->GetAI())
447-
if (Unit* target = creature->GetAI()->SelectTarget(SelectTargetMethod::Random, 0, 0.0f, true, true))
448-
creature->AI()->AttackStart(target);
449-
}
446+
caster->GetThreatManager().ResetAllThreat();
447+
448+
if (Unit* target = caster->GetAI()->SelectTarget(SelectTargetMethod::Random, 0, 0.0f, true, true))
449+
caster->GetAI()->AttackStart(target);
450450
}
451451

452452
void Register() override

0 commit comments

Comments
 (0)