fix(Scripts/Karazhan): Fix Tenris Mirkblood area trigger conditions. (#23162)
This commit is contained in:
parent
a0bbd2fe5e
commit
c79289c4b8
1 changed files with 4 additions and 4 deletions
|
|
@ -290,8 +290,8 @@ public:
|
|||
bool OnTrigger(Player* player, AreaTrigger const* /*trigger*/) override
|
||||
{
|
||||
if (InstanceScript* instance = player->GetInstanceScript())
|
||||
if (instance->GetBossState(DATA_MIRKBLOOD) != DONE)
|
||||
if (Creature* mirkblood = instance->GetCreature(DATA_MIRKBLOOD))
|
||||
if (Creature* mirkblood = instance->GetCreature(DATA_MIRKBLOOD))
|
||||
if (mirkblood->IsAlive() && !mirkblood->IsInCombat())
|
||||
mirkblood->AI()->Talk(SAY_APPROACH, player);
|
||||
|
||||
return false;
|
||||
|
|
@ -306,8 +306,8 @@ public:
|
|||
bool OnTrigger(Player* player, AreaTrigger const* /*trigger*/) override
|
||||
{
|
||||
if (InstanceScript* instance = player->GetInstanceScript())
|
||||
if (instance->GetBossState(DATA_MIRKBLOOD) != DONE)
|
||||
if (Creature* mirkblood = instance->GetCreature(DATA_MIRKBLOOD))
|
||||
if (Creature* mirkblood = instance->GetCreature(DATA_MIRKBLOOD))
|
||||
if (mirkblood->IsAlive() && mirkblood->IsImmuneToPC())
|
||||
mirkblood->SetImmuneToPC(false);
|
||||
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue