mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07: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;
|
||||
|
||||
switch(GetGoType())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue