Merge branch 'naxxramas' into dev_naxx_merge

This commit is contained in:
Gemt
2017-08-09 19:13:30 +02:00
78 changed files with 14059 additions and 2254 deletions
+10
View File
@@ -2067,6 +2067,11 @@ Creature *Map::SummonCreature(uint32 entry, float x, float y, float z, float ang
// Active state set before added to map
pCreature->SetActiveObjectState(asActiveObject);
pCreature->Summon(spwtype, despwtime);
// Creature Linking, Initial load is handled like respawn
if (pCreature->IsLinkingEventTrigger())
GetCreatureLinkingHolder()->DoCreatureLinkingEvent(LINKING_EVENT_RESPAWN, pCreature);
// return the creature therewith the summoner has access to it
return pCreature;
}
@@ -2106,6 +2111,11 @@ Creature* WorldObject::SummonCreature(uint32 id, float x, float y, float z, floa
if (GetTypeId() == TYPEID_UNIT && ((Creature*)this)->AI())
((Creature*)this)->AI()->JustSummoned(pCreature);
// Creature Linking, Initial load is handled like respawn
if (pCreature->IsLinkingEventTrigger())
GetMap()->GetCreatureLinkingHolder()->DoCreatureLinkingEvent(LINKING_EVENT_RESPAWN, pCreature);
pCreature->SetWorldMask(GetWorldMask());
// return the creature therewith the summoner has access to it
return pCreature;