fix(Scrips/BlackrockSpires): add missing _JustDied() to Halycon script (#10065)

- Closes #9953
This commit is contained in:
UltraNix
2022-01-13 14:58:36 +01:00
committed by GitHub
parent 0c3536979a
commit 3fe82ff268
@@ -50,7 +50,6 @@ public:
void Reset() override void Reset() override
{ {
_Reset(); _Reset();
Summoned = false;
} }
void EnterCombat(Unit* /*who*/) override void EnterCombat(Unit* /*who*/) override
@@ -62,10 +61,9 @@ public:
void JustDied(Unit* /*killer*/) override void JustDied(Unit* /*killer*/) override
{ {
_JustDied();
me->SummonCreature(NPC_GIZRUL_THE_SLAVENER, SummonLocation, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 300000); me->SummonCreature(NPC_GIZRUL_THE_SLAVENER, SummonLocation, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 300000);
Talk(EMOTE_DEATH); Talk(EMOTE_DEATH);
Summoned = true;
} }
void UpdateAI(uint32 diff) override void UpdateAI(uint32 diff) override
@@ -95,8 +93,6 @@ public:
} }
DoMeleeAttackIfReady(); DoMeleeAttackIfReady();
} }
private:
bool Summoned;
}; };
CreatureAI* GetAI(Creature* creature) const override CreatureAI* GetAI(Creature* creature) const override