mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
Core/GameObject: Check if a GO is a requirement of a quest, and if so make it
sparkle Author: NoFantasy --HG-- branch : trunk
This commit is contained in:
@@ -852,6 +852,9 @@ void GameObject::Respawn()
|
||||
|
||||
bool GameObject::ActivateToQuest(Player *pTarget) const
|
||||
{
|
||||
if (pTarget->HasQuestForGO(GetEntry()))
|
||||
return true;
|
||||
|
||||
if (!sObjectMgr.IsGameObjectForQuests(GetEntry()))
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user