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:
runningnak3d
2010-10-06 16:46:18 -06:00
parent 89833567d2
commit debeea7f2a

View File

@@ -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;