mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[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:
parent
b0d5e3e51a
commit
66555530a8
2 changed files with 7 additions and 3 deletions
|
|
@ -716,6 +716,10 @@ void GameObject::Respawn()
|
|||
|
||||
bool GameObject::ActivateToQuest(Player *pTarget)const
|
||||
{
|
||||
// if GO is ReqCreatureOrGoN for quest
|
||||
if (pTarget->HasQuestForGO(GetEntry()))
|
||||
return true;
|
||||
|
||||
if (!sObjectMgr.IsGameObjectForQuests(GetEntry()))
|
||||
return false;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10589"
|
||||
#define REVISION_NR "10590"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue