fix(Scripts/Karazhan): Update Aran script to use boss states (#17376)
This commit is contained in:
parent
f44e658342
commit
57841f7213
1 changed files with 2 additions and 6 deletions
|
|
@ -198,8 +198,7 @@ struct boss_shade_of_aran : public BossAI
|
|||
void JustDied(Unit* /*killer*/) override
|
||||
{
|
||||
Talk(SAY_DEATH);
|
||||
|
||||
instance->SetData(DATA_ARAN, DONE);
|
||||
_JustDied();
|
||||
|
||||
if (GameObject* libraryDoor = instance->instance->GetGameObject(instance->GetGuidData(DATA_GO_LIBRARY_DOOR)))
|
||||
{
|
||||
|
|
@ -210,12 +209,9 @@ struct boss_shade_of_aran : public BossAI
|
|||
|
||||
void JustEngagedWith(Unit* /*who*/) override
|
||||
{
|
||||
_JustEngagedWith();
|
||||
Talk(SAY_AGGRO);
|
||||
|
||||
instance->SetData(DATA_ARAN, IN_PROGRESS);
|
||||
|
||||
DoZoneInCombat();
|
||||
|
||||
//handle timed closing door
|
||||
scheduler.Schedule(15s, [this](TaskContext)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue