feat(Core/Eluna): Added new OnPetAddedToWorld() hook for Eluna. (#8084)

This commit is contained in:
UltraNix
2021-10-08 16:57:14 +02:00
committed by GitHub
parent 05dba4797c
commit 86084560e0
2 changed files with 12 additions and 0 deletions

View File

@@ -239,6 +239,9 @@ void Creature::AddToWorld()
GetVehicleKit()->Install();
#ifdef ELUNA
sEluna->OnAddToWorld(this);
if (IsGuardian() && ToTempSummon() && ToTempSummon()->GetSummonerGUID().IsPlayer())
sEluna->OnPetAddedToWorld(ToTempSummon()->GetSummonerUnit()->ToPlayer(), this);
#endif
}
}