mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 13:46:24 +00:00
feat(Core/Modules): add separated lib for modules (#9281)
This commit is contained in:
@@ -35,10 +35,6 @@
|
||||
#include "WorldPacket.h"
|
||||
#include "WorldSession.h"
|
||||
|
||||
#ifdef ELUNA
|
||||
#include "LuaEngine.h"
|
||||
#endif
|
||||
|
||||
Pet::Pet(Player* owner, PetType type) : Guardian(nullptr, owner ? owner->GetGUID() : ObjectGuid::Empty, true),
|
||||
m_usedTalentCount(0), m_removed(false), m_owner(owner),
|
||||
m_happinessTimer(PET_LOSE_HAPPINES_INTERVAL), m_petType(type), m_duration(0),
|
||||
@@ -98,10 +94,10 @@ void Pet::AddToWorld()
|
||||
GetCharmInfo()->SetIsReturning(false);
|
||||
}
|
||||
|
||||
#ifdef ELUNA
|
||||
if (GetOwnerGUID().IsPlayer())
|
||||
sEluna->OnPetAddedToWorld(GetOwner(), this);
|
||||
#endif
|
||||
{
|
||||
sScriptMgr->OnPetAddToWorld(this);
|
||||
}
|
||||
}
|
||||
|
||||
void Pet::RemoveFromWorld()
|
||||
|
||||
Reference in New Issue
Block a user