fix(Scripts/Karazhan): Minor adjustments to Tenris Mirkblood. (#22753)
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
UPDATE `creature` SET `spawntimesecs` = 604800 WHERE `id1` = 28194;
|
||||||
@@ -177,6 +177,9 @@ struct npc_sanguine_spirit : public ScriptedAI
|
|||||||
me->SetReactState(REACT_AGGRESSIVE);
|
me->SetReactState(REACT_AGGRESSIVE);
|
||||||
me->SetInCombatWithZone();
|
me->SetInCombatWithZone();
|
||||||
DoCastSelf(SPELL_SANGUINE_SPIRIT_AURA);
|
DoCastSelf(SPELL_SANGUINE_SPIRIT_AURA);
|
||||||
|
}).Schedule(30s, [this](TaskContext /*context*/)
|
||||||
|
{
|
||||||
|
me->DespawnOrUnsummon();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -320,6 +323,7 @@ public:
|
|||||||
events.Reset();
|
events.Reset();
|
||||||
|
|
||||||
if (InstanceScript* instance = player->GetInstanceScript())
|
if (InstanceScript* instance = player->GetInstanceScript())
|
||||||
|
{
|
||||||
if (instance->GetBossState(DATA_MIRKBLOOD) != DONE)
|
if (instance->GetBossState(DATA_MIRKBLOOD) != DONE)
|
||||||
{
|
{
|
||||||
opener = player;
|
opener = player;
|
||||||
@@ -327,8 +331,10 @@ public:
|
|||||||
|
|
||||||
events.ScheduleEvent(EVENT_SAY, 1s);
|
events.ScheduleEvent(EVENT_SAY, 1s);
|
||||||
events.ScheduleEvent(EVENT_FLAG, 5s);
|
events.ScheduleEvent(EVENT_FLAG, 5s);
|
||||||
me->SetGameObjectFlag(GO_FLAG_NOT_SELECTABLE);
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
me->SetGameObjectFlag(GO_FLAG_NOT_SELECTABLE);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -342,14 +348,13 @@ public:
|
|||||||
switch (events.ExecuteEvent())
|
switch (events.ExecuteEvent())
|
||||||
{
|
{
|
||||||
case EVENT_SAY:
|
case EVENT_SAY:
|
||||||
if (!mirkblood)
|
if (!mirkblood || !mirkblood->IsAlive())
|
||||||
return;
|
return;
|
||||||
mirkblood->AI()->Talk(SAY_AGGRO, opener);
|
mirkblood->AI()->Talk(SAY_AGGRO, opener);
|
||||||
break;
|
break;
|
||||||
case EVENT_FLAG:
|
case EVENT_FLAG:
|
||||||
if (!mirkblood)
|
if (mirkblood)
|
||||||
return;
|
mirkblood->SetImmuneToPC(false);
|
||||||
mirkblood->SetImmuneToPC(false);
|
|
||||||
me->Delete();
|
me->Delete();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user