1 parent
a73a5942d4
commit
9c7160e028
2 files changed
+9
-2
No files matched your search
@@ -972,6 +972,8 @@ class spell_hadronox_periodic_summon_template_AuraScript : public AuraScript
|
||||
InstanceScript* instance = caster->GetInstanceScript();
|
||||
if (!instance)
|
||||
return;
|
||||
if (!instance->instance->HavePlayers())
|
||||
return;
|
||||
if (instance->GetBossState(DATA_HADRONOX) == DONE)
|
||||
GetAura()->Remove();
|
||||
else
|
||||
|
||||
@@ -72,9 +72,14 @@ class instance_azjol_nerub : public InstanceMapScript
|
||||
void OnUnitDeath(Unit* who) override
|
||||
{
|
||||
InstanceScript::OnUnitDeath(who);
|
||||
Creature* creature = who->ToCreature();
|
||||
if (!creature || creature->IsCritter() || creature->IsControlledByPlayer())
|
||||
|
||||
if (who->GetTypeId() != TYPEID_UNIT || GetBossState(DATA_KRIKTHIR) == DONE)
|
||||
return;
|
||||
|
||||
Creature* creature = who->ToCreature();
|
||||
if (creature->IsCritter() || creature->IsCharmedOwnedByPlayerOrPlayer())
|
||||
return;
|
||||
|
||||
if (Creature* gatewatcher = GetCreature(DATA_KRIKTHIR))
|
||||
gatewatcher->AI()->DoAction(-ACTION_GATEWATCHER_GREET);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user