viewing paste Unknown #22588 | Text

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
‪#‎region‬ UPSweep-DownSweep-Strike
if (attack.SpellID == 12580 || attack.SpellID == 12590 || attack.SpellID == 12600)
{
SpellUse suse = new SpellUse(true);
suse.Attacker = attacker.UID;
suse.SpellID = attack.SpellID;
suse.SpellLevel = 0;
suse.X = attacker.X;
suse.Y = attacker.Y;
Fan fan = new Fan(attacker.X, attacker.Y, attacked.X, attacked.Y, 7, 180);
foreach (Interfaces.IMapObject _obj in attacker.Owner.Screen.Objects)
{
if (_obj == null)
continue;
if (_obj.MapObjType == MapObjectType.Monster ||
_obj.MapObjType == MapObjectType.Player)
{
attacked = _obj as Entity;
if (Kernel.GetDistance(attacker.X, attacker.Y, attacked.X, attacked.Y) <= 7)
{
if (CanAttack(attacker, attacked, null, attack.AttackType == Attack.Melee))
{
attack.Effect = Attack.AttackEffects.None;
uint damage = Game.Attacking.Calculate.Melee(attacker,
attacked, ref attack);
attack.Attacked = 0;
attack.Damage = damage;
suse.Effect1 = attack.Effect;
ReceiveAttack(attacker, attacked, attack, damage, null);
suse.AddTarget(attacked.UID, damage, attack);
}
}
}
}
attacker.Owner.SendScreen(suse, true);
attacker.AttackPacket = null;
attack = null;
return;
}
‪#‎endregion‬
Viewed 656 times, submitted by Guest.