Skip to content

Commit 6fb3478

Browse files
committed
Naxxramas: Fix Gothik encounter
1 parent 91b8a78 commit 6fb3478

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/game/AI/ScriptDevAI/scripts/eastern_kingdoms/naxxramas/boss_gothik.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ struct boss_gothikAI : public BossAI
148148
SetMeleeEnabled(true);
149149
SetCombatMovement(true);
150150
SetReactState(REACT_AGGRESSIVE);
151+
SetCombatScriptStatus(false);
151152

152153
DoResetThreat();
153154
m_creature->SetInCombatWithZone();
@@ -382,6 +383,11 @@ struct ToAnchorTwo : public SpellScript
382383
// 27896, 27930, 27938 - Choose Random Skull Pile
383384
struct ChooseRandomSkullPile : public SpellScript
384385
{
386+
void OnInit(Spell* spell) const override
387+
{
388+
spell->SetMaxAffectedTargets(1);
389+
}
390+
385391
void OnEffectExecute(Spell* spell, SpellEffectIndex effIdx) const override
386392
{
387393
if (effIdx != EFFECT_INDEX_0 || !spell->GetUnitTarget())

0 commit comments

Comments
 (0)