mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-17 13:39:46 -04:00
Core/SAI: added SMART_ACTION_RANDOM_SOUND
Closes #16376
(cherry picked from commit e4af2baa7e)
This commit is contained in:
@@ -840,6 +840,13 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e)
|
||||
if (e.action.randomEmote.emote6 && !IsEmoteValid(e, e.action.randomEmote.emote6))
|
||||
return false;
|
||||
break;
|
||||
case SMART_ACTION_RANDOM_SOUND:
|
||||
for (uint8 i = 0; i < SMART_ACTION_PARAM_COUNT - 1; i++)
|
||||
{
|
||||
if (e.action.randomSound.sound[i] && !IsSoundValid(e, e.action.randomSound.sound[i]))
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
case SMART_ACTION_CAST:
|
||||
{
|
||||
if (!IsSpellValid(e, e.action.cast.spell))
|
||||
|
||||
Reference in New Issue
Block a user