public override void AttackSkill(ushort skillid, MapObject victim)
{
if (victim == null)
{
victim = SelectedObject;
}
if (IsAttacking || victim == null || !victim.IsAttackable) return;
ushort attackspeed = 1200;
Equip weapon;
EquippedItems.TryGetValue(ItemSlot.Weapon, out weapon);
uint dmgmin = (uint)GetWeaponDamage(true);
uint dmgmax = (uint)(GetWeaponDamage(true) + (GetWeaponDamage(true) % 3));
if (weapon != null)
{
attackspeed = weapon.Info.AttackSpeed;
dmgmin += weapon.Info.MinMelee;
dmgmax += weapon.Info.MaxMelee;
}
AttackingSequence = new AttackSequence(this, victim, dmgmin, dmgmax, skillid, true);
}