Advertisement
AhmedSokr

Untitled

Apr 10th, 2020
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. Fan fan = new Fan(Attacker.X, Attacker.Y, info.X, info.Y, spell.Range, 160);
  2. foreach (IMapObject obj in Attacker.Owner.Screen.TryGetValues(MapObjectType.Player, MapObjectType.Monster))
  3. {
  4. if (fan.IsInFan(obj.X, obj.Y))
  5. {
  6. if (CanAttackEntity.Verified(Attacker, (obj as Entity), spell, info.Attack.AttackType == Attack.Physical))
  7. {
  8. info.Attack.Effect = Attack.AttackEffects.None;
  9.  
  10. uint damage = Calculating.Physical.Player(Attacker, (obj as Entity), spell, ref info.Attack);
  11. suse.Effect1 = info.Attack.Effect;
  12. ReceiveAttack.Player.Execute(Attacker, (obj as Entity), info.Attack, ref damage, spell);
  13. suse.AddTarget(obj.UID, damage, info.Attack);
  14. }
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement