Merge pull request #10493 from Discover-/SmartAI-Action-Sound-Update

Core/SmartAI: Rename SMART_ACTION_SOUND's parameters and get rid of an e...
This commit is contained in:
Nay
2013-08-09 08:38:09 -07:00
3 changed files with 4 additions and 9 deletions

View File

@@ -621,11 +621,6 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e)
case SMART_ACTION_SOUND:
if (!IsSoundValid(e, e.action.sound.sound))
return false;
if (e.action.sound.range > TEXT_RANGE_WORLD)
{
TC_LOG_ERROR(LOG_FILTER_SQL, "SmartAIMgr: Entry %d SourceType %u Event %u Action %u uses invalid Text Range %u, skipped.", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType(), e.action.sound.range);
return false;
}
break;
case SMART_ACTION_SET_EMOTE_STATE:
case SMART_ACTION_PLAY_EMOTE: