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
@@ -1154,7 +1154,7 @@ namespace Scripts.Northrend.IcecrownCitadel
case EventTypes.ArnathPwShield:
{
List<Creature> targets = DoFindFriendlyMissingBuff(40.0f, InstanceSpells.SpellPowerWordShield(IsUndead));
DoCast(targets.PickRandom(), InstanceSpells.SpellPowerWordShield(IsUndead));
DoCast(targets.SelectRandom(), InstanceSpells.SpellPowerWordShield(IsUndead));
_events.ScheduleEvent(EventTypes.ArnathPwShield, RandomHelper.URand(15000, 20000));
break;
}
@@ -1656,7 +1656,7 @@ namespace Scripts.Northrend.IcecrownCitadel
if (!targets.Empty())
{
WorldObject target = targets.PickRandom();
WorldObject target = targets.SelectRandom();
targets.Clear();
targets.Add(target);
}
@@ -1737,7 +1737,7 @@ namespace Scripts.Northrend.IcecrownCitadel
return true;
});
targets = targets.PickRandom(2).ToList();
targets = targets.SelectRandom(2).ToList();
}
void Land(uint effIndex)