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
|
|
@ -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())
|
||||||
|
|
|
||||||
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue