mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[10588] Make GO type 8 activate and sparkle at related quest active
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
657894786a
commit
fc2e66231b
4 changed files with 20 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10587"
|
||||
#define REVISION_NR "10588"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue