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:
1 parent
89833567d2
commit
debeea7f2a
1 file changed
+3
@@ -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