fix(Scripts/Karazhan): Update Aran script to use boss states (#17376)
This commit is contained in:
@@ -198,8 +198,7 @@ struct boss_shade_of_aran : public BossAI
|
|||||||
void JustDied(Unit* /*killer*/) override
|
void JustDied(Unit* /*killer*/) override
|
||||||
{
|
{
|
||||||
Talk(SAY_DEATH);
|
Talk(SAY_DEATH);
|
||||||
|
_JustDied();
|
||||||
instance->SetData(DATA_ARAN, DONE);
|
|
||||||
|
|
||||||
if (GameObject* libraryDoor = instance->instance->GetGameObject(instance->GetGuidData(DATA_GO_LIBRARY_DOOR)))
|
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
|
void JustEngagedWith(Unit* /*who*/) override
|
||||||
{
|
{
|
||||||
|
_JustEngagedWith();
|
||||||
Talk(SAY_AGGRO);
|
Talk(SAY_AGGRO);
|
||||||
|
|
||||||
instance->SetData(DATA_ARAN, IN_PROGRESS);
|
|
||||||
|
|
||||||
DoZoneInCombat();
|
|
||||||
|
|
||||||
//handle timed closing door
|
//handle timed closing door
|
||||||
scheduler.Schedule(15s, [this](TaskContext)
|
scheduler.Schedule(15s, [this](TaskContext)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user