Implement area guards system.

Done without using the guard post gameobjects, since spawning them crashes the 1.12 client.
This commit is contained in:
ratkosrb
2019-03-06 19:48:01 +02:00
parent ace2884c29
commit 5d7467f79b
13 changed files with 467 additions and 9 deletions
+2 -2
View File
@@ -2335,7 +2335,7 @@ void ScriptMgr::CollectPossibleEventIds(std::set<uint32>& eventIds)
}
}
void DoScriptText(int32 iTextEntry, WorldObject* pSource, Unit* pTarget, uint32 chatTypeOverride)
void DoScriptText(int32 iTextEntry, WorldObject* pSource, Unit* pTarget, int32 chatTypeOverride)
{
if (!pSource)
{
@@ -2379,7 +2379,7 @@ void DoScriptText(int32 iTextEntry, WorldObject* pSource, Unit* pTarget, uint32
}
}
if (chatTypeOverride)
if (chatTypeOverride >= 0)
Type = chatTypeOverride;
DEBUG_LOG("DoScriptText: text entry=%i, Sound=%u, Type=%u, Language=%u, Emote=%u",