Renamed PickRandom to SelectRandom
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user