[10590] Check if GO is requirement of quest to activate sparkle if it is

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2010-10-08 12:14:02 +02:00
parent b0d5e3e51a
commit 66555530a8
2 changed files with 7 additions and 3 deletions

View file

@ -714,9 +714,13 @@ void GameObject::Respawn()
} }
} }
bool GameObject::ActivateToQuest( Player *pTarget)const bool GameObject::ActivateToQuest(Player *pTarget)const
{ {
if(!sObjectMgr.IsGameObjectForQuests(GetEntry())) // if GO is ReqCreatureOrGoN for quest
if (pTarget->HasQuestForGO(GetEntry()))
return true;
if (!sObjectMgr.IsGameObjectForQuests(GetEntry()))
return false; return false;
switch(GetGoType()) switch(GetGoType())

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "10589" #define REVISION_NR "10590"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__