private KillAllMobs ( |
||
character | ||
Результат | void |
private void KillAllMobs(ZoneCharacter character, params string[] param)
{
ushort dmg = (ushort)(param.Length >= 2 ? ushort.Parse(param[1]) : 900001);
foreach (MapObject obj in character.Map.Objects.Values.Where(o => o is Mob))
{
var mob = obj as Mob;
Handler9.SendAttackDamage(character, mob.MapObjectID, dmg, true, 0, obj.UpdateCounter);
mob.Damage(null, dmg);
}
}