Renamed PickRandom to SelectRandom
This commit is contained in:
@@ -159,7 +159,7 @@ namespace Game.AI
|
||||
}
|
||||
case SelectAggroTarget.Random:
|
||||
{
|
||||
return targetList.PickRandom();
|
||||
return targetList.SelectRandom();
|
||||
}
|
||||
default:
|
||||
break;
|
||||
@@ -197,7 +197,7 @@ namespace Game.AI
|
||||
targetList.Reverse();
|
||||
|
||||
if (targetType == SelectAggroTarget.Random)
|
||||
targetList = targetList.PickRandom(maxTargets).ToList();
|
||||
targetList = targetList.SelectRandom(maxTargets).ToList();
|
||||
else
|
||||
targetList.Resize(maxTargets);
|
||||
|
||||
|
||||
@@ -2302,7 +2302,7 @@ namespace Game.AI
|
||||
{
|
||||
if (IsUnit(obj))
|
||||
{
|
||||
uint sound = sounds.PickRandom();
|
||||
uint sound = sounds.SelectRandom();
|
||||
obj.PlayDirectSound(sound, onlySelf ? obj.ToPlayer() : null);
|
||||
Log.outDebug(LogFilter.ScriptsAi, "SmartScript.ProcessAction:: SMART_ACTION_RANDOM_SOUND: target: {0} ({1}), sound: {2}, onlyself: {3}",
|
||||
obj.GetName(), obj.GetGUID().ToString(), sound, onlySelf);
|
||||
|
||||
Reference in New Issue
Block a user