public void PrepareAttack(Target target) { if (World.Game.Editor || !World.Map.Type.AllowWeapons) { return; } if (!CanAttack) { return; } Angle = (Position - target.Position).FlatAngle; Weapon.OnAttack(target); }
public void PrepareAttack(Target target) { if (World.Game.Editor || !World.Map.Type.AllowWeapons) { return; } if (!CanAttack) { return; } Angle = (Position - target.Position).FlatAngle; Weapon.OnAttack(target); }