From fc2e66231bfdbb289a18f174ce1814b56e81796e Mon Sep 17 00:00:00 2001 From: NoFantasy Date: Fri, 8 Oct 2010 09:40:01 +0200 Subject: [PATCH] [10588] Make GO type 8 activate and sparkle at related quest active Signed-off-by: NoFantasy --- src/game/GameObject.cpp | 6 ++++++ src/game/Object.cpp | 4 ++++ src/game/ObjectMgr.cpp | 9 +++++++++ src/shared/revision_nr.h | 2 +- 4 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp index 264c386bf..886309a17 100644 --- a/src/game/GameObject.cpp +++ b/src/game/GameObject.cpp @@ -741,6 +741,12 @@ bool GameObject::ActivateToQuest( Player *pTarget)const return true; break; } + case GAMEOBJECT_TYPE_SPELL_FOCUS: + { + if (pTarget->GetQuestStatus(GetGOInfo()->spellFocus.questID) == QUEST_STATUS_INCOMPLETE) + return true; + break; + } case GAMEOBJECT_TYPE_GOOBER: { if(pTarget->GetQuestStatus(GetGOInfo()->goober.questId) == QUEST_STATUS_INCOMPLETE) diff --git a/src/game/Object.cpp b/src/game/Object.cpp index 7d7c75779..7e27bee18 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -707,6 +707,10 @@ void Object::BuildValuesUpdate(uint8 updatetype, ByteBuffer * data, UpdateMask * *data << uint16(8); // unclear if 0x01 should be added *data << uint16(-1); break; + case GAMEOBJECT_TYPE_SPELL_FOCUS: + *data << uint16(9); + *data << uint16(-1); + break; case GAMEOBJECT_TYPE_GOOBER: *data << uint16(9); *data << uint16(-1); diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 54210a0f8..8fbd5df94 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -7742,6 +7742,15 @@ void ObjectMgr::LoadGameObjectForQuests() } break; } + case GAMEOBJECT_TYPE_SPELL_FOCUS: + { + if (goInfo->spellFocus.questID) // quest related objects, has visual effect + { + mGameObjectForQuestSet.insert(go_entry); + count++; + } + break; + } case GAMEOBJECT_TYPE_GOOBER: { if(goInfo->goober.questId) //quests objects diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 9da8fc34d..9a8d24dbd 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "10587" + #define REVISION_NR "10588" #endif // __REVISION_NR_H__