diff options
author | kaelima <kaelima@live.se> | 2011-11-13 06:40:14 +0100 |
---|---|---|
committer | kaelima <kaelima@live.se> | 2011-11-13 06:40:14 +0100 |
commit | 17e1f8a0d51d73f8bde1b8a3850677cde9b606a4 (patch) | |
tree | c57ba980277afe21b602cc52a250c61ecdf1e85f /src | |
parent | 0bb964285f1eab2d2d74156c3865764fb749b114 (diff) |
Core/SmartAI: Remove the requirement for only players to trigger SMART_ACTION_SOUND.
Closes #517
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/AI/SmartScripts/SmartScript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp index 9563a5d3b4c..29340660435 100644 --- a/src/server/game/AI/SmartScripts/SmartScript.cpp +++ b/src/server/game/AI/SmartScripts/SmartScript.cpp @@ -224,7 +224,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u { for (ObjectList::const_iterator itr = targets->begin(); itr != targets->end(); ++itr) { - if (IsPlayer(*itr)) + if (IsUnit(*itr)) { (*itr)->SendPlaySound(e.action.sound.sound, e.action.sound.range > 0 ? true : false); sLog->outDebug(LOG_FILTER_DATABASE_AI, "SmartScript::ProcessAction:: SMART_ACTION_SOUND: target: %s (GuidLow: %u), sound: %u, onlyself: %u", |