Core/Creature: Prevent Spirit Guides (bg spirit healers) to be seen by alive players.
This commit is contained in:
@@ -787,16 +787,11 @@ bool Creature::Create(uint32 guidlow, Map* map, uint32 phaseMask, uint32 Entry,
|
|||||||
LastUsedScriptID = GetCreatureInfo()->ScriptID;
|
LastUsedScriptID = GetCreatureInfo()->ScriptID;
|
||||||
|
|
||||||
// TODO: Replace with spell, handle from DB
|
// TODO: Replace with spell, handle from DB
|
||||||
if (isSpiritHealer())
|
if (isSpiritHealer() || isSpiritGuide())
|
||||||
{
|
{
|
||||||
m_serverSideVisibility.SetValue(SERVERSIDE_VISIBILITY_GHOST, GHOST_VISIBILITY_GHOST);
|
m_serverSideVisibility.SetValue(SERVERSIDE_VISIBILITY_GHOST, GHOST_VISIBILITY_GHOST);
|
||||||
m_serverSideVisibilityDetect.SetValue(SERVERSIDE_VISIBILITY_GHOST, GHOST_VISIBILITY_GHOST);
|
m_serverSideVisibilityDetect.SetValue(SERVERSIDE_VISIBILITY_GHOST, GHOST_VISIBILITY_GHOST);
|
||||||
}
|
}
|
||||||
else if (isSpiritGuide())
|
|
||||||
{
|
|
||||||
m_serverSideVisibility.SetValue(SERVERSIDE_VISIBILITY_GHOST, GHOST_VISIBILITY_GHOST | GHOST_VISIBILITY_ALIVE);
|
|
||||||
m_serverSideVisibilityDetect.SetValue(SERVERSIDE_VISIBILITY_GHOST, GHOST_VISIBILITY_GHOST | GHOST_VISIBILITY_ALIVE);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Entry == VISUAL_WAYPOINT)
|
if (Entry == VISUAL_WAYPOINT)
|
||||||
SetVisible(false);
|
SetVisible(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user