Skip to content

Commit

Permalink
[10590] Check if GO is requirement of quest to activate sparkle if it is
Browse files Browse the repository at this point in the history
Signed-off-by: NoFantasy <nofantasy@nf.no>
  • Loading branch information
NoFantasy committed Oct 8, 2010
1 parent 36f91ea commit 57a1719
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/game/GameObject.cpp
Expand Up @@ -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;

switch(GetGoType())
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10589"
#define REVISION_NR "10590"
#endif // __REVISION_NR_H__

0 comments on commit 57a1719

Please sign in to comment.