Renamed PickRandom to SelectRandom

This commit is contained in:
hondacrx
2017-06-21 11:57:04 -04:00
parent d16d6d57f0
commit 430507a10a
28 changed files with 54 additions and 53 deletions
@@ -210,7 +210,7 @@ namespace Scripts.Northrend.AzjolNerub.Ahnkahet
if (vInitiands.Empty())
return ObjectGuid.Empty;
return vInitiands.PickRandom();
return vInitiands.SelectRandom();
}
case DataTypes.AddJedogaVictim:
return JedogaSacrifices;
@@ -205,7 +205,7 @@ namespace Scripts.Northrend.AzjolNerub.AzjolNerub.Anubarak
me.GetCreatureListWithEntryInGrid(triggers, CreatureIds.WorldTrigger);
if (!triggers.Empty())
{
var it = triggers.PickRandom();
var it = triggers.SelectRandom();
it.CastSpell(it, SpellIds.SummonDarter, true);
_events.Repeat(TimeSpan.FromSeconds(11));
}
@@ -889,7 +889,7 @@ namespace Scripts.Northrend.AzjolNerub.AzjolNerub.KrikthirTheGatewatcher
if (!targetList.Empty())
{
// If there are, pick one of them at random
target = targetList.PickRandom();
target = targetList.SelectRandom();
}
// And hit only that one
targetList.Clear();